Update app.py
Browse files
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.
|
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("
|
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"],
|