File size: 1,101 Bytes
4758905
 
 
 
 
 
 
 
 
 
 
 
 
9cf52c7
4758905
9cf52c7
 
 
4758905
 
 
9cf52c7
4758905
9cf52c7
4758905
9cf52c7
 
 
 
4758905
 
9cf52c7
4758905
9cf52c7
 
 
 
4758905
 
 
 
9cf52c7
 
4758905
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
---

title: Llama-2 Chatbot
emoji: πŸ¦™
colorFrom: blue
colorTo: indigo
sdk: gradio
sdk_version: "4.44.0"
python_version: "3.10"
app_file: app.py
pinned: false
---


# πŸ¦™ Llama-2-7B Chatbot

A modern AI chatbot powered by **Llama-2-7B** (GGMLv3 Q2_K quantized), running fully offline with a Gradio web interface.



## ✨ Features

- **Offline AI**: No internet connection required after model download.

- **Llama-2 Chat Template**: Optimized prompting for assistant-style responses.

- **Conversation History**: Maintains context across multiple turns.

- **Clean UI**: Powered by Gradio with a soft blue theme.



## πŸ› οΈ Setup



### 1. Install Dependencies

```bash

pip install -r requirements.txt

```



### 2. Download the Model

Upload `llama-2-7b-chat.ggmlv3.q2_K.bin` (~2.8GB) to this Space's Files tab.

### 3. Run the App
```bash

python app.py

```

## πŸ“‚ Files
- `app.py` β€” Gradio web interface
- `tkinter_app.py` β€” Desktop Tkinter version
- `requirements.txt` β€” Python dependencies

---
Created by [d-e-e-k-11](https://huggingface.co/d-e-e-k-11)