Spaces:
Running
Running
zach
commited on
Commit
·
a265e4f
1
Parent(s):
8047063
Fix typo in documentation
Browse files- src/app.py +4 -3
src/app.py
CHANGED
@@ -80,9 +80,10 @@ def generate_text(prompt: str) -> Tuple[Union[str, gr.update], gr.update]:
|
|
80 |
|
81 |
def text_to_speech(prompt: str, generated_text: str) -> Tuple[gr.update, gr.update, dict, Union[str, None]]:
|
82 |
"""
|
83 |
-
Synthesizes two text to speech outputs
|
84 |
-
|
85 |
-
|
|
|
86 |
|
87 |
Args:
|
88 |
prompt (str): The original prompt.
|
|
|
80 |
|
81 |
def text_to_speech(prompt: str, generated_text: str) -> Tuple[gr.update, gr.update, dict, Union[str, None]]:
|
82 |
"""
|
83 |
+
Synthesizes two text to speech outputs, loads the two audio players with the
|
84 |
+
output audio, and updates related UI state components.
|
85 |
+
- 50% chance to synthesize one Hume and one Elevenlabs output.
|
86 |
+
- 50% chance to synthesize two Hume outputs.
|
87 |
|
88 |
Args:
|
89 |
prompt (str): The original prompt.
|