Skip to content

varun-katara/HuggingFace-Chatbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

🤖 Hugging Face Chatbot

A simple Python chatbot using the Llama 3.1 8B Instruct model from Hugging Face.

🚀 How to Run

  1. Clone the repo git clone https://github.com/varun-katara/HuggingFace-Chatbot.git cd HuggingFace-Chatbot

  2. Create a virtual environment python -m venv venv venv\Scripts\activate # Windows source venv/bin/activate # Mac/Linux

  3. Install dependencies pip install -r requirements.txt Add your Hugging Face API token Create a file called .env in the project folder:

  4. Add your Hugging Face API token HUGGINGFACEHUB_API_TOKEN=hf_xxxxxxxxxxxxx

  5. Run the chatbot python main.py

About

A beginner-friendly Python chatbot using Hugging Face’s Llama 3.1 model, with .env for API keys and a clean project structure.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages