A Flask-based AI chatbot that provides interactive learning support using OpenAI's GPT models.
The chatbot runs entirely in a web browser and can be easily deployed.
π Interactive AI Chatbot β Powered by OpenAI's API
π Fully Web-Based β No need for a terminal interface
π Uses LangChain for Enhanced AI Responses
π Bootstrap & jQuery UI β Responsive and mobile-friendly
π Flask Backend β Handles AI requests efficiently
π Easy Deployment β Run locally or deploy to the cloud
π **YourRepoName/**
βββ π **templates/** # HTML templates for the chatbot UI
β βββ π **index.html** # Main chat interface
βββ π **static/** # Static files (CSS, JS)
β βββ π¨ **style.css** # Custom chatbot styles
βββ π **chatbot.py** # AI processing logic
βββ π₯ **app.py** # Flask web server
βββ π **requirements.txt** # List of dependencies
βββ π **.env** # OpenAI API key (not shared in GitHub)
βββ π **README.md** # Project documentation
To isolate dependencies, create a virtual environment:
python -m venv .venvActivate it:
- Windows:
.venv\Scripts\activate
- macOS/Linux:
source .venv/bin/activate
Install all required dependencies using:
pip install -r requirements.txttouch .envOPENAI_API_KEY=your-openai-api-key-herepython app.pyhttp://127.0.0.1:5000/auth
Simply enter your message and get real-time responses.