Spaces:
Running
Running
File size: 1,663 Bytes
f2542fa 842bbce f2542fa 842bbce f2542fa 842bbce |
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 |
---
title: Tts Online Rubric
emoji: π
colorFrom: indigo
colorTo: red
sdk: gradio
sdk_version: 5.49.1
app_file: app.py
pinned: false
license: cc-by-4.0
short_description: A rubric for choosing a good TTS voice
---
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
## Saving responses to a private Hugging Face dataset
This project can optionally push saved responses to a private dataset on the Hugging Face Hub. The feature is disabled by default and only active when the following environment variables are set:
- `HF_TOKEN` β a Hugging Face access token with dataset write permissions.
- `HF_DATASET_ID` β repo id like `your-username/my-eval-responses`.
Setup:
1. Create a token on https://huggingface.co/settings/tokens and grant it write permissions for datasets/repos.
2. Export the variables locally before running the app:
```bash
export HF_TOKEN="hf_...your_token..."
export HF_DATASET_ID="your-username/my-eval-responses"
```
3. Install dependencies and run the app:
```bash
pip install -r requirements.txt
python app.py
# open http://localhost:7860 and submit ratings via the UI
```
Notes:
- If the `datasets` or `huggingface_hub` packages are not installed, HF pushing is skipped gracefully and responses are still written to `responses.csv`.
- Pushing audio files will use Git LFS on the Hub; monitor your account storage and LFS quota.
- Each UI save triggers a small push (single-record commit). For heavy usage consider batching pushes instead.
There is also a small test script included to programmatically verify pushing a single sample row to your dataset. See `hf_push_test.py`. |