Check out how to deploy this project.
This project is a FastAPI app that exposes an interface route where users can talk to the OpenAI GPT-3 language model using the OpenAI API. The app also includes a HTML interface with a chatbox for interacting with GPT-3.
- Clone the repository:
git clone https://github.com/[username]/gpt3-fastapi-app.git
- Navigate to the project directory:
cd gpt3-fastapi-app
- Install the required packages:
pip install -r requirements.txt
- Start the app:
uvicorn main:app --reload
- Open the app in your web browser at http://localhost:8000.
To use the app, enter a prompt in the input field and click the "Submit" button. The app will use the OpenAI GPT-3 language model to generate a response, which will be displayed in the chatbox. You can adjust the value of the max_tokens
parameter by entering a value in the max_tokens
input field.
If you would like to contribute to this project, please open an issue or submit a pull request.
This project is licensed under the MIT License.