Spaces:
Sleeping
Sleeping
File size: 5,344 Bytes
3cddd18 a43e25e 3cddd18 e27f7ec d18888e e27f7ec 72e0ef4 e27f7ec daf14da e27f7ec a43e25e | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 | ---
license: apache-2.0
title: ๐ง AI Chatbot๐ค
sdk: streamlit
emoji: ๐ป
colorFrom: pink
colorTo: purple
thumbnail: >-
https://cdn-uploads.huggingface.co/production/uploads/6686260107019f3fe482ce08/xfpa6MidZ5aE9OEP96pi5.jpeg
short_description: The System on Real-Time Intent Recognition and Conversations
sdk_version: 1.44.1
---
# **๐ค AI-Powered Chatbot using NLP**
## **๐ Introduction**
This project is an **AI-driven chatbot**, developed as part of my **AICTE-Shell Internship**. The chatbot leverages **Natural Language Processing (NLP) and Deep Learning** techniques using **BERT** to provide intelligent responses based on user queries. The chatbot is trained on an **Intent JSON dataset** and fine-tuned to enhance accuracy.
๐ **Deployed Application:** [๐ง AI Chatbot๐ค](https://huggingface.co/spaces/SamarthPujari/AI-Chatbot)
## **๐ฏ Project Goals**
โ
Implement **AI & NLP techniques** for intelligent conversation.
โ
Explore **BERT-based Deep Learning** for chatbot development.
โ
Develop a **context-aware chatbot** with high accuracy.
โ
Enhance **text preprocessing, model training, and deployment skills**.
โ
Deploy an **interactive chatbot web app** using **Streamlit**.
## **๐ Dataset Used**
The chatbot is trained on a **custom Intent JSON dataset**, which includes:
- **User Queries & Responses**: Predefined conversations.
- **Intent Classification Data**: Labeled conversations for accurate intent detection.
- **Pretrained BERT Model**: Fine-tuned for improved understanding.
## **๐ Methodology**
### **Step 1: Data Collection & Preprocessing**
๐น Loaded and cleaned **Intent JSON dataset**.
๐น **Tokenized text data** using BERT tokenizer.
๐น **Converted labels to categorical format** for training.
### **Step 2: Model Selection & Training**
๐น Used **BERT (Bidirectional Encoder Representations from Transformers)**.
๐น Implemented **deep learning-based intent classification**.
๐น Trained on multiple epochs & tuned hyperparameters for **optimal accuracy**.
๐น Evaluated **training & validation accuracy** to ensure model performance.
### **Step 3: Chatbot Development & Integration**
๐น Built an **Intent Recognition Model** using **BERT for Sequence Classification**.
๐น Designed a **Response Generation Mechanism** for accurate replies.
๐น Integrated trained model into a **Streamlit & HuggingFace web app** for user interaction.
### **Step 4: Deployment & User Interaction**
๐น **Saved and exported the trained BERT model** for real-time inference.
๐น Deployed chatbot as a **Streamlit as well as HuggingFace web app**.
๐น **Implemented real-time conversations** with NLP-powered responses.
## **๐ Key Features**
โ
**Real-time Chatbot using BERT-based Intent Recognition**.
โ
**Deep Learning Model trained on an Intent JSON dataset**.
โ
**Optimized Text Processing & Tokenization**.
โ
**Accurate Intent Classification for diverse queries**.
โ
**Deployable on Web using Streamlit**.
## **๐ Technologies Used**
| Category | Tools & Libraries |
|---------------------|-------------------|
| **Development** | Python, Jupyter Notebook, Anaconda, VS Code|
| **NLP Frameworks** | Hugging Face Transformers, BERT |
| **Machine Learning** | TensorFlow, PyTorch |
| **Data Processing** | Pandas, NumPy |
| **Deployment** | Streamlit, Streamlit Cloud, HuggingFace |
## **๐ท Screenshots**
| **Streamlit App - Chatbot Interface** |
|---------------------------------------|
||
| **Streamlit App - Chatbot Interface** |
|---------------------------------------|
||
| **Streamlit App - Chatbot Interface** |
|---------------------------------------|
||
| **Streamlit App - Chatbot Interface** |
|---------------------------------------|
||
## **๐ฏ Future Improvements**
๐น Expand dataset with **more real-world conversations**.
๐น Integrate **voice-based interaction** using Speech Recognition.
๐น Enhance **context retention** for long conversations.
๐น Optimize model efficiency for **faster response times**.
๐น Expanding chatbot capabilities with **multilingual support**.
## **๐ฅ Installation & Setup**
### **๐น Clone the Repository**
```bash
git clone https://github.com/Samarth4023/Shell-Internship-2.git
cd Shell-Internship-2
```
### **๐น Install Required Dependencies**
```bash
pip install -r requirements.txt
```
### **๐น Run the Streamlit App**
```bash
streamlit run app.py
```
## **๐ License**
This project is **open-source** and free to use. Feel free to contribute!
## **๐ง Contact**
๐ **Author:** Samarth Pujari
๐ **GitHub:** [Samarth4023](https://github.com/Samarth4023)
๐ **LinkedIn:** [Samarth Pujari](https://www.linkedin.com/in/samarth-pujari-328a1326a) |