A simple chatbot built using Streamlit and the Hugging Face Inference API.
The chatbot uses the Mistral-7B-Instruct-v0.2 model for conversational AI.
- Conversational AI powered by Hugging Face LLM
- Clean and intuitive Streamlit interface
- Direct API requests to Hugging Face's free server
- Python 3.9+
- Hugging Face API token (get it here)
Clone the repository:
git clone https://github.com/AdarshZolekar/AI-Chatbot.git
cd AI-Chatbot
Install dependencies:
pip install Requirements.txt
Create a .env file in the project root:
HUGGINGFACE_API_TOKEN=your_token_here
streamlit run AI-Chatbot.py
Deploy on Streamlit Cloud:
-
Push your code to GitHub.
-
Connect the repo to Streamlit Cloud.
-
Add HUGGINGFACE_API_TOKEN in App Secrets.
-
Responses depend on Hugging Face’s free API quota.
-
Latency may be high.
Contributions are welcome! Fork the repo, make changes and submit a PR.