-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWrite README
More file actions
56 lines (28 loc) · 956 Bytes
/
Write README
File metadata and controls
56 lines (28 loc) · 956 Bytes
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
🤖 Persian Chatbot using Flan-T5
A simple command-line chatbot built with Hugging Face Transformers, powered by Google's `flan-t5-base` model, fine-tuned for general-purpose **text-to-text generation**.
📌 Features
* Utilizes `google/flan-t5-base` from Hugging Face 🤗
* Supports Persian and English inputs
* Generates natural text-based replies
* Graceful error handling and offline warnings
* Easy to extend or integrate into GUI/web apps
🧠 Model
* **Model**: `google/flan-t5-base`
* **Task**: `text2text-generation`
* **Library**: `transformers` by Hugging Face
▶️ How to Run
1. Install Dependencies
```bash
pip install transformers
```
2. Run the Bot
```bash
python chatbot.py
```
3. Start Chatting!
Just type your message — to exit, type `خروج`, `بای`, `exit`, or `bye`.
📂 File Structure
```
├── chatbot.py # Main script
└── README.md # Project documentation
```