An open API service indexing awesome lists of open source software.

https://github.com/saeidsaadatigero/chatbot-gemini

🤖Chatbot using Hugging Face & Gemini API
https://github.com/saeidsaadatigero/chatbot-gemini

ai chatbot colab-notebook django gemini gemini-api huggingface machine-learning python

Last synced: 3 months ago
JSON representation

🤖Chatbot using Hugging Face & Gemini API

Awesome Lists containing this project

README

          

# 🤖 Chatbot Using Hugging Face API

![Screenshot from 2024-10-28 21-44-41](https://github.com/user-attachments/assets/294805cc-b50f-4bc8-8339-fb6ea98dab46)
# 🤖 Chatbot Using Gemini API
![ChatBot](https://github.com/user-attachments/assets/1a79a38f-a8ab-44c1-8ef2-28c945814acf)

This project implements a chatbot using the Hugging Face API, specifically designed to leverage natural language processing capabilities. The chatbot interacts with users in both English and Persian, providing intelligent responses while avoiding repetitive phrases.

## 🌟 Features

- **🌍 Multi-language Support:** Engage in conversations in both English and Persian.
- **💬 Dynamic Responses:** Utilizes the GPT-Neo model for generating contextual replies.
- **🔒 CSRF Protection:** Implements security measures for handling requests.
- **🎨 User-friendly Interface:** Built with Bootstrap for a responsive and intuitive chat experience.
- **🚫 Message Filtering:** Filters out repetitive responses to enhance conversation flow.

## 🛠️ Technologies Used

- **Django:** Backend framework for handling requests and serving the application.
- **Hugging Face API:** Utilized for natural language processing capabilities.
- **Bootstrap:** Frontend framework for creating a responsive user interface.
- **JavaScript:** For dynamic interactions in the chat application.

## 🚀 Getting Started

1. Clone the repository:
```bash
git clone https://github.com/saeidsaadatigero/Chatbot-Using-Hugging-Face-API.git
```
2. Navigate to the project directory:
```bash
cd Chatbot-Using-Hugging-Face-API
```
3. Install the required dependencies:
```bash
pip install -r requirements.txt
```
4. Set up your environment variables for the Hugging Face API key.
5. Run the development server:
```bash
python manage.py runserver
```

## 🤝 Contributing

Feel free to fork the repository and submit a pull request. For any issues or feature requests, please open an issue.