This is a simple Flask web application that utilizes OpenAI's GPT-3.5 model to create a chat assistant. Users can interact with the chat assistant by entering text prompts, and the assistant will respond based on the input.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
Before you begin, make sure you have the following installed on your system:
- Python 3
- Flask
- OpenAI Python package
- Clone the repository to your local machine:
git clone https://github.com/irohanrajput/pybot.git
- Navigate into the project directory:
cd pybot
- Install the required Python packages:
pip install -r requirements.txt
- Obtain an API key from OpenAI and save it in a file named
apikey.json
in the root directory of the project where your 'main.py' file exists. The format should be:
{"key": "YOUR_API_KEY_HERE"}
- Run the Flask application:
python app.py
-
Open your web browser and navigate to
http://localhost:5000
to access the chat interface. -
Enter text prompts in the input field and press Enter or click on the submit button to interact with the chat assistant.
- This project utilizes OpenAI's GPT-3.5 model for natural language processing.
- The Flask web framework is used to create the web interface.