| import os |
|
|
| RUNNING_LOCALLY = os.getenv('RUNNING_LOCALLY', '0').lower() in ('true', '1', 't') |
| if RUNNING_LOCALLY: |
| print("Running locally, not syncing DB to HF dataset") |
| else: |
| print("Running in HF Space, syncing DB to HF dataset") |
| |
|
|
| |
| |
| |
|
|
| DB_NAME = "database.db" |
|
|
| TOXICITY_CHECK = False |
|
|
| MAX_SAMPLE_TXT_LENGTH = 300 |
| MIN_SAMPLE_TXT_LENGTH = 10 |
|
|
| DB_PATH = f"/data/{DB_NAME}" if os.path.isdir("/data") else DB_NAME |
|
|
| ROUTER_ID = "TTS-AGI/tts-router" |
|
|
| SYNC_DB = not RUNNING_LOCALLY |
|
|
| DB_DATASET_ID = os.getenv('DATASET_ID') |
|
|
| SPACE_ID = os.getenv('SPACE_ID') |
|
|
| with open(os.path.dirname(__file__) + '/../harvard_sentences.txt', 'r') as f: |
| sents = f.read().strip().splitlines() |
|
|
| |
| |
| |
|
|
| CITATION_TEXT = """@misc{tts-arena, |
| title = {Text to Speech Arena}, |
| author = {mrfakename and Srivastav, Vaibhav and Fourrier, Clémentine and Pouget, Lucain and Lacombe, Yoach and main and Gandhi, Sanchit}, |
| year = 2024, |
| publisher = {Hugging Face}, |
| howpublished = "\\url{https://huggingface.co/spaces/TTS-AGI/TTS-Arena}" |
| }""" |
|
|
| NEWS = """ |
| - 2025/01/21: New leaderboard UI released with enhanced UI and improved performance. |
| - 2025/01/14: CosyVoice 2.0 was added to the Arena. |
| - 2024/11/26: Anonymous Sparkle (Fish Speech v1.5) was added to the Arena. |
| """ |
|
|