A full-stack AI Chatbot built using Google Gemini API, FastAPI, and Streamlit.
This project was created as part of Project 1 β AI Domain Internship Program.
- β Fast & clean chat UI (Streamlit)
- β Backend API using FastAPI
- β Connects to Google Gemini LLM for responses
- β
Environment variable support using
.env - β Simple, minimal, submission-ready project structure
- Python
- Google Gemini API
- FastAPI (Backend)
- Streamlit (Frontend)
- dotenv (Environment variable loader)
AI_Chatbot_Project/ βββ main.py βββ requirements.txt βββ README.md βββ .env (not included in GitHub) βββ streamlit/ β βββ config.toml β βββ credentials.toml
Create a .env file in the root folder:
GEMINI_API_KEY=YOUR_API_KEY_HERE
βΆοΈ How to Run Locally
1οΈβ£ Create Virtual Environment
python -m venv venv
2οΈβ£ Activate Virtual Environment
Windows cmd
venv\Scripts\activate
3οΈβ£ Install Dependencies
pip install -r requirements.txt
4οΈβ£ Run Streamlit App
streamlit run main.py
β
Output
Streamlit UI runs on: http://localhost:8501