PRIYADHARSHINI2003 / Health-bot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Health and Fitness Chatbot

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.

Prerequisites

Before you begin, ensure you have the following installed:

  • Python 3.x
  • pip (Python package manager)

Getting Started

  1. 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

  2. Install dependencies:

pip install -r requirements.txt

  1. 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

  1. 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.

About


Languages

Language:HTML 98.7%Language:CSS 0.7%Language:Python 0.6%