Spaces:
Runtime error
Runtime error
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,35 +1,42 @@
|
|
| 1 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
|
| 3 |
This Hugging Face Space lets you talk to an AI using your voice — entirely for free and running on CPU.
|
| 4 |
|
| 5 |
-
##
|
| 6 |
-
- 🎙️ Takes voice input via microphone
|
| 7 |
-
- 🧠 Transcribes your voice to text using `openai/whisper-small`
|
| 8 |
-
- 💬 Generates helpful responses using `google/flan-t5-base`
|
| 9 |
-
- 🧱 Built with Gradio, Transformers, and PyTorch
|
| 10 |
-
|
| 11 |
-
### 📦 Dependencies
|
| 12 |
-
All dependencies are listed in `requirements.txt`:
|
| 13 |
-
- `transformers`
|
| 14 |
-
- `torch`
|
| 15 |
-
- `gradio`
|
| 16 |
-
|
| 17 |
-
### 🛠 How to Use in a Hugging Face Space
|
| 18 |
-
1. Create a new Space (SDK: **Gradio**)
|
| 19 |
-
2. Upload the following files:
|
| 20 |
-
- `app.py`
|
| 21 |
-
- `requirements.txt`
|
| 22 |
-
- `README.md` (optional, this file)
|
| 23 |
-
3. Run the Space — works on **CPU Basic** (no paid hardware needed)
|
| 24 |
|
| 25 |
-
|
| 26 |
-
-
|
| 27 |
-
-
|
|
|
|
| 28 |
|
| 29 |
-
##
|
| 30 |
-
- Transcription by: [`openai/whisper-small`](https://huggingface.co/openai/whisper-small)
|
| 31 |
-
- Chat by: [`google/flan-t5-base`](https://huggingface.co/google/flan-t5-base)
|
| 32 |
|
| 33 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 34 |
|
| 35 |
-
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
title: Lightweight Voice Agent (Whisper + FLAN-T5)
|
| 3 |
+
emoji: 🗣️
|
| 4 |
+
colorFrom: blue
|
| 5 |
+
colorTo: indigo
|
| 6 |
+
sdk: gradio
|
| 7 |
+
app_file: app.py
|
| 8 |
+
pinned: true
|
| 9 |
+
---
|
| 10 |
+
|
| 11 |
+
# Lightweight Voice Agent (Whisper + FLAN-T5)
|
| 12 |
|
| 13 |
This Hugging Face Space lets you talk to an AI using your voice — entirely for free and running on CPU.
|
| 14 |
|
| 15 |
+
## What It Does
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
|
| 17 |
+
- Takes voice input via microphone
|
| 18 |
+
- Transcribes your voice to text using `openai/whisper-small`
|
| 19 |
+
- Generates text replies using `google/flan-t5-base`
|
| 20 |
+
- Built with Gradio, Transformers, and PyTorch
|
| 21 |
|
| 22 |
+
## Dependencies
|
|
|
|
|
|
|
| 23 |
|
| 24 |
+
All required libraries are listed in `requirements.txt`:
|
| 25 |
+
transformers
|
| 26 |
+
torch
|
| 27 |
+
gradio
|
| 28 |
+
|
| 29 |
+
## How to Run It
|
| 30 |
+
|
| 31 |
+
1. Create a new **Hugging Face Space** (SDK: Gradio)
|
| 32 |
+
2. Upload these files:
|
| 33 |
+
- `app.py`
|
| 34 |
+
- `requirements.txt`
|
| 35 |
+
- `README.md` (optional, this file)
|
| 36 |
+
3. Launch on **CPU Basic** — no paid plan required
|
| 37 |
+
|
| 38 |
+
## Credits
|
| 39 |
|
| 40 |
+
- Transcription: [`openai/whisper-small`](https://huggingface.co/openai/whisper-small)
|
| 41 |
+
- Generation: [`google/flan-t5-base`](https://huggingface.co/google/flan-t5-base)
|
| 42 |
+
- Developed by [designingtomorrow](https://huggingface.co/designingtomorrowllc)
|