Spaces:
Running
Running
adjusted Parler and Fish to recommended params
Browse files
app.py
CHANGED
@@ -278,10 +278,10 @@ OVERRIDE_INPUTS = {
|
|
278 |
5: None, # filepath in 'Upload a clean sample to clone. Sample should contain 1 speaker, be between 30-90 seconds and not contain background noise.' Audio component
|
279 |
},
|
280 |
'parler-tts/parler_tts': {
|
281 |
-
1: 'Elisabeth
|
282 |
},
|
283 |
'parler-tts/parler-tts-expresso': {
|
284 |
-
1: 'Elisabeth
|
285 |
},
|
286 |
'innoai/Edge-TTS-Text-to-Speech': {
|
287 |
1: 'en-US-EmmaMultilingualNeural - en-US (Female)', # voice
|
@@ -293,7 +293,7 @@ OVERRIDE_INPUTS = {
|
|
293 |
1: True, # enable_reference_audio
|
294 |
2: file('https://huggingface.co/spaces/fishaudio/fish-speech-1/resolve/main/examples/English.wav'), # reference_audio
|
295 |
3: 'In the ancient land of Eldoria, where the skies were painted with shades of mystic hues and the forests whispered secrets of old, there existed a dragon named Zephyros. Unlike the fearsome tales of dragons that plagued human hearts with terror, Zephyros was a creature of wonder and wisdom, revered by all who knew of his existence.', # reference_text
|
296 |
-
4:
|
297 |
5: 200, # chunk_length
|
298 |
6: 0.7, # top_p
|
299 |
7: 1.2, # repetition_penalty
|
@@ -431,7 +431,7 @@ router = {}
|
|
431 |
####################################
|
432 |
MUST_BE_LOGGEDIN = "Please login with Hugging Face to participate in the TTS Arena."
|
433 |
DESCR = """
|
434 |
-
# TTS Arena: Benchmarking TTS Models in the Wild
|
435 |
|
436 |
Vote to help the community find the best available text-to-speech model!
|
437 |
""".strip()
|
@@ -1238,7 +1238,7 @@ def give_cached_sample(session_hash: str, request: gr.Request):
|
|
1238 |
# note the vote on cached sample pair
|
1239 |
def voted_on_cached(modelName1: str, modelName2: str, transcript: str, session_hash: str, request: gr.Request):
|
1240 |
userid = get_userid(session_hash, request)
|
1241 |
-
print(f'userid voted on cached: {userid}')
|
1242 |
|
1243 |
if userid not in voting_users:
|
1244 |
voting_users[userid] = User(userid)
|
|
|
278 |
5: None, # filepath in 'Upload a clean sample to clone. Sample should contain 1 speaker, be between 30-90 seconds and not contain background noise.' Audio component
|
279 |
},
|
280 |
'parler-tts/parler_tts': {
|
281 |
+
1: 'Elisabeth; Elisabeth\'s female voice; very clear audio', # description/prompt
|
282 |
},
|
283 |
'parler-tts/parler-tts-expresso': {
|
284 |
+
1: 'Elisabeth; Elisabeth\'s female voice; very clear audio', # description/prompt
|
285 |
},
|
286 |
'innoai/Edge-TTS-Text-to-Speech': {
|
287 |
1: 'en-US-EmmaMultilingualNeural - en-US (Female)', # voice
|
|
|
293 |
1: True, # enable_reference_audio
|
294 |
2: file('https://huggingface.co/spaces/fishaudio/fish-speech-1/resolve/main/examples/English.wav'), # reference_audio
|
295 |
3: 'In the ancient land of Eldoria, where the skies were painted with shades of mystic hues and the forests whispered secrets of old, there existed a dragon named Zephyros. Unlike the fearsome tales of dragons that plagued human hearts with terror, Zephyros was a creature of wonder and wisdom, revered by all who knew of his existence.', # reference_text
|
296 |
+
4: 0, # max_new_tokens
|
297 |
5: 200, # chunk_length
|
298 |
6: 0.7, # top_p
|
299 |
7: 1.2, # repetition_penalty
|
|
|
431 |
####################################
|
432 |
MUST_BE_LOGGEDIN = "Please login with Hugging Face to participate in the TTS Arena."
|
433 |
DESCR = """
|
434 |
+
# TTS Spaces Arena: Benchmarking Gradio hosted TTS Models in the Wild
|
435 |
|
436 |
Vote to help the community find the best available text-to-speech model!
|
437 |
""".strip()
|
|
|
1238 |
# note the vote on cached sample pair
|
1239 |
def voted_on_cached(modelName1: str, modelName2: str, transcript: str, session_hash: str, request: gr.Request):
|
1240 |
userid = get_userid(session_hash, request)
|
1241 |
+
# print(f'userid voted on cached: {userid}')
|
1242 |
|
1243 |
if userid not in voting_users:
|
1244 |
voting_users[userid] = User(userid)
|