added one comment
Browse files
app.py
CHANGED
@@ -195,7 +195,7 @@ def voice_player(history):
|
|
195 |
Returns the audio player with the generated response.
|
196 |
"""
|
197 |
_, text = history[-1]
|
198 |
-
text = text.replace("*", "")
|
199 |
voice = pipe(text)
|
200 |
voice = gr.Audio(value = (
|
201 |
voice["sampling_rate"],
|
|
|
195 |
Returns the audio player with the generated response.
|
196 |
"""
|
197 |
_, text = history[-1]
|
198 |
+
text = text.replace("*", "") # For the tts to not read the asterisk of bold text
|
199 |
voice = pipe(text)
|
200 |
voice = gr.Audio(value = (
|
201 |
voice["sampling_rate"],
|