/Flask-QA-GPT3

Flask-QA-GPT3 is a web application built witFlask and OpenAI's GPT-3 API that allows users to ask questions and get answers from GPT-3.

Primary LanguagePython

Flask-QA-GPT3

Flask-QA-GPT3 is a web application built with Flask and OpenAI's GPT-3 API that allows users to ask questions and get answers from GPT-3.

Installation

  1. Clone the repository:
git clone https://github.com/your_username/flask-qa-gpt3.git
  1. Install the required packages:
pip install -r requirements.txt
  1. Set up your OpenAI API credentials by following these instructions.
  2. Create a .env file in the root directory of the project with your API key:
OPENAI_API_KEY=your_api_key_here

Usage

  1. Start the Flask server:
flask run
  1. Open your web browser and go to http://localhost:5000.
  2. Type a question in the input box and click the "submit" button.
  3. Wait for the answer from GPT-3 to appear.