VanYsa commited on
Commit
11efe1e
·
1 Parent(s): b1b6586

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -156,7 +156,7 @@ def bot(history, message):
156
  new_tuple = list(history[-1])
157
  new_tuple[1] = answer
158
  history[-1] = tuple(new_tuple)
159
- time.sleep(0.05)
160
  yield history
161
 
162
  @spaces.GPU()
@@ -194,7 +194,7 @@ def voice_player(history):
194
  Returns the audio player with the generated response.
195
  """
196
  _, text = history[-1]
197
- text = text.replace("***", "") # For the tts to not read the asterisk of bold text
198
  voice = pipe(text)
199
  voice = gr.Audio(value = (
200
  voice["sampling_rate"],
 
156
  new_tuple = list(history[-1])
157
  new_tuple[1] = answer
158
  history[-1] = tuple(new_tuple)
159
+ time.sleep(0.01)
160
  yield history
161
 
162
  @spaces.GPU()
 
194
  Returns the audio player with the generated response.
195
  """
196
  _, text = history[-1]
197
+ text = text.replace("*", "") # Temp. fix: For the tts to not read the asterisk of bold text
198
  voice = pipe(text)
199
  voice = gr.Audio(value = (
200
  voice["sampling_rate"],