Skip to content
This repository has been archived by the owner on Nov 13, 2023. It is now read-only.

OpenShiftDemos/fastapi-lightspeed-service

Repository files navigation

About The Project

Built With

this project is built using IBM watson machine learning

Getting Started

To get a local copy up and running follow these simple example steps.

Prerequisites

  • python
  • BAM account
    • BAM_API_KEY
    • BAM_URL

Installation

Below is an example of how you can instruct your audience on installing and setting up your app. This template doesn't rely on any external dependencies or services.

  1. Get a BAM API Key at https://ibmmid.com
  2. Clone the repo
    git clone <project gti>
  3. Install python packages
    pip install -r requirement.txt
  4. Create a new file .env from the default.env example and enter your BAM_API_KEY in the top line

Usage

Run the server

in order to run the API service

     uvicorn ols:app --reload

Query the server

To send a request to the server you can use the following curl command:

   curl -X 'POST' 'http://127.0.0.1:8000/ols' -H2 'accept: application/json' -H 'Content-Type: application/json' -d '{"query": "write a deployment yaml for the mongodb image"}'

Roadmap

  • [ ]

See the open issues for a full list of proposed features (and known issues).

(back to top)

Contributing

License

Published under the Apache 2.0 License

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •