Skip to content

afr117/AI-Chat-box

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

AI-Chat-box

OpenAI GPT-3.5 Turbo Chat Box

This is a chat box application powered by OpenAI GPT-3.5 Turbo, allowing users to interact with the chat assistant and receive responses generated by the language model.

Features

  • User Interaction: Users can input messages into the chat box.
  • AI Response: The application sends user messages to OpenAI GPT-3.5 Turbo and displays the generated response.
  • Toggle Chat: The chat box can be collapsed into a bubble and expanded back.

Usage

  1. Requirements:

    • Python
    • Flask
    • OpenAI API Key
  2. Setup:

    • Install dependencies: pip install Flask openai
  3. Run the Application:

    • Execute python app.py in the terminal.
  4. Access the Chat Box:

    • Open a web browser and navigate to http://localhost:5000/.
  5. Interact:

    • Enter your message in the input field and click "Get Response" to see the AI's reply.

Configuration

  • Replace api_key in app.py with your valid OpenAI GPT-3.5 Turbo API key.

Customization

  • Adjust the appearance and behavior of the chat box by modifying the HTML, CSS, and JavaScript files in the templates folder.

License

Author: Alfred Figueroa Rose

This project is licensed under the MIT License - see the LICENSE file for details.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published