A local Llama_3.2_400M_Amharic_Chat_Demo & some Other stuff
## 🤖Llama_3.2_400M_Amharic_Chat_Demo
An local interactive Amharic language chatbot powered by Llama 3.2 with text-to-speech capabilities. This application provides a modern chat interface for conversing in Amharic with AI-powered responses and optional voice output.
## Features ✨
- **Native Amharic Support**: Full conversation support in Amharic language
- **Streaming Responses**: Real-time text generation for smooth user experience
- **Text-to-Speech**: Optional voice output using Google Text-to-Speech (gTTS)
- **Modern UI**: Clean, responsive chat interface inspired by contemporary AI assistants
- **Conversation History**: Maintains context across multiple turns
- **Customizable Settings**: Adjust response length and toggle voice output
- **Pre-loaded Examples**: Quick-start prompts covering various topics
## Model Information 📚
This chatbot uses the **Llama-3.2-400M-Amharic-Instruct** model, specifically trained on:
- Amharic poems
- Stories
- Wikipedia content
Model ID: `rasyosef/Llama-3.2-400M-Amharic-Instruct-Poems-Stories-Wikipedia`
## Installation 🚀
### Prerequisites
- Python 3.8 or higher
- pip package manager
### Quick Start
1. Clone this repository:
```bash
git clone
github.com
cd Llama_3.2_400M_Amharic_Chat_Demo
```
2. Run the script (dependencies will auto-install):
```bash
python Llama-3.2-400M-Amharic-Gradio.py
```
The script automatically installs required packages:
- `transformers`
- `torch`
- `accelerate`
- `gTTS`
- `gradio`
3. Open your browser and navigate to:
```
localhost
```
## Usage 💬
### Starting a Conversation
1. Type your message in Amharic in the text box
2. Press Enter or click the "ላክ" (Send) button
3. Wait for the AI response to stream in
4. Audio will automatically play if voice is enabled
### Settings
Access settings by expanding the "⚙️ ማስተካከያ" accordion at the bottom:
- **የመልስ ርዝመት (Response Length)**: Adjust the maximum length of responses …