Spaces:
Running
Running
zach
commited on
Commit
·
514de3d
1
Parent(s):
f64ebd7
Remove testing logic to force Hume to Hume comparison
Browse files- src/app.py +1 -2
src/app.py
CHANGED
@@ -104,8 +104,7 @@ def text_to_speech(prompt: str, text: str, generated_text_state: str) -> Tuple[g
|
|
104 |
raise gr.Error('Please generate or enter text to synthesize.')
|
105 |
|
106 |
# If not using generated text, then only compare Hume to Hume
|
107 |
-
|
108 |
-
compare_hume_with_elevenlabs = False
|
109 |
|
110 |
elevenlabs_voice = get_random_elevenlabs_voice_id()
|
111 |
# Get two Hume voices preemptively in case we compare Hume with Hume
|
|
|
104 |
raise gr.Error('Please generate or enter text to synthesize.')
|
105 |
|
106 |
# If not using generated text, then only compare Hume to Hume
|
107 |
+
compare_hume_with_elevenlabs = (text == generated_text_state) and (random.random() < 0.5)
|
|
|
108 |
|
109 |
elevenlabs_voice = get_random_elevenlabs_voice_id()
|
110 |
# Get two Hume voices preemptively in case we compare Hume with Hume
|