This is a simple chat application that utilizes the OpenAI GPT-3.5-turbo model to generate responses based on user input. The application is built with Flask for the backend and includes a basic frontend for user interaction.
Before you begin, ensure you have the following installed:
- Python 3.x
- pip (Python package manager)
-
Clone the repository to your local machine:
git clone https://github.com/yourusername/health-fitness-chatbot.git Change into the project directory: cd health-fitness-chatbot
-
Install dependencies:
pip install -r requirements.txt
- Set up OpenAI API Key: Obtain your OpenAI API key from the OpenAI platform. Export the API key as an environment variable:
export OPENAI_API_KEY=your_api_key_here
- Run the Flask application:
python app.py The application will be running at http://127.0.0.1:5000/. Open this URL in your browser.
Usage Open the application in your browser. Type your message in the input field and click "Send." The chatbot will generate a response using the GPT-3.5-turbo model and other Health fitness API.