zach commited on
Commit
a265e4f
·
1 Parent(s): 8047063

Fix typo in documentation

Browse files
Files changed (1) hide show
  1. 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 and loads the two audio players in the UI with the output audio.
84
- - 50% of the time one Hume tts output and one Elevenlabs output will be synthesized.
85
- = 50% of the time two Hume tts outputs will be synthesized.
 
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.