build a chatbot using the OpenAI's Chat GPT API "gpt-3.5-turbo" and Flasks Server.
- Flask module to create a web server.
- OpenAI module to use it's API.
- OpenAI API key
To get started using this application, please follow the steps below:
- Install Python on your computer.
- Navigate to the directory where you have cloned this repository.
- Run the command
pip install -r requirements.txt
to install the necessary Python packages. - Add your OpenAI API key to the
app.py
file. You can obtain an API key by signing up for OpenAI's API program. - Run the command
python app.py
to start the application.
Once the application is running, you can use it to generate text based on a prompt that you provide. Simply enter a prompt and the application will use OpenAI's API to generate a response.
We welcome contributions to this repository. If you have any improvements or suggestions, please feel free to create a pull request.
This repository is licensed under the MIT License. Please see the LICENSE
file for more information.
i used chat gpt to generate all the code. for the front end side, you can write code as per your need to make it look different.