Skip to content

A Python chatbot that supports both rule-based responses using dictionaries and AI-generated replies via DeepInfra’s LLaMA API. Works offline in simple mode and online with AI, showcasing Python logic, user input handling, and API integration.

License

Notifications You must be signed in to change notification settings

bhargav8-hub/AI-Python-ChatBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🧠 AI Python ChatBot

A simple AI chatbot built using Python and Flask. It allows users to type messages into a web interface and receive intelligent responses.


📁 Project Structure

AI-Python-ChatBot/
├── app.py                  # Flask backend
├── chatbot.py              # Chatbot logic
├── templates/
│   └── index.html          # Frontend HTML
├── static/
│   ├── style.css           # CSS
│   └── script.js           # JS
├── requirements.txt        # Python dependencies
├── .env                    # (Optional) for environment variables
└── venv/                   # Virtual environment (ignored by Git)

🚀 How to Run the Project Locally

1. Clone the repo

git clone https://github.com/bhargav8-hub/AI-Python-ChatBot.git
cd AI-Python-ChatBot

2. Set up virtual environment (recommended)

python -m venv venv
venv\Scripts\activate  # On Windows
# source venv/bin/activate  # On macOS/Linux

3. Install dependencies

pip install -r requirements.txt

4.

Replace YOUR_API_KEY with your actual key in .env (use deepinfra api key)

5. Run the app

python app.py

Then visit http://127.0.0.1:5000 in your browser.


📸 Screenshot

Screenshot_7-8-2025_133853_127 0 0 1

👨‍💻 Author

Bhargav Ade


About

A Python chatbot that supports both rule-based responses using dictionaries and AI-generated replies via DeepInfra’s LLaMA API. Works offline in simple mode and online with AI, showcasing Python logic, user input handling, and API integration.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published