Skip to content

A simple AI chatbot built with Streamlit and Hugging Face’s Mistral-7B-Instruct-v0.2 for interactive conversational AI.

Notifications You must be signed in to change notification settings

AdarshZolekar/AI-Chatbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

AI Chatbot with Hugging Face and Streamlit

Python Streamlit Hugging Face

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.


Features

  • Conversational AI powered by Hugging Face LLM
  • Clean and intuitive Streamlit interface
  • Direct API requests to Hugging Face's free server

Getting Started

1. Prerequisites


2. Installation

Clone the repository:

git clone https://github.com/AdarshZolekar/AI-Chatbot.git
cd AI-Chatbot

Install dependencies:

pip install Requirements.txt

3. Environment Setup

Create a .env file in the project root:

HUGGINGFACE_API_TOKEN=your_token_here

4. Run the App

streamlit run AI-Chatbot.py

Deployment

Deploy on Streamlit Cloud:

  1. Push your code to GitHub.

  2. Connect the repo to Streamlit Cloud.

  3. Add HUGGINGFACE_API_TOKEN in App Secrets.


Limitations

  • Responses depend on Hugging Face’s free API quota.

  • Latency may be high.


Contributing

Contributions are welcome! Fork the repo, make changes and submit a PR.


Back to Top

About

A simple AI chatbot built with Streamlit and Hugging Face’s Mistral-7B-Instruct-v0.2 for interactive conversational AI.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages