Update app.py
Browse files
app.py
CHANGED
|
@@ -50,7 +50,9 @@ with gr.Blocks(title="LLM with TTS",head=head) as demo:
|
|
| 50 |
js = """
|
| 51 |
function(chatbot){
|
| 52 |
text = (chatbot[chatbot.length -1])["content"]
|
| 53 |
-
window.
|
|
|
|
|
|
|
| 54 |
}
|
| 55 |
"""
|
| 56 |
chatbot = gr.Chatbot(type="messages")
|
|
|
|
| 50 |
js = """
|
| 51 |
function(chatbot){
|
| 52 |
text = (chatbot[chatbot.length -1])["content"]
|
| 53 |
+
tts_text = window.replaceSpecialChars(text)
|
| 54 |
+
console.log(tts_text)
|
| 55 |
+
window.MatchaTTSEn(tts_text)
|
| 56 |
}
|
| 57 |
"""
|
| 58 |
chatbot = gr.Chatbot(type="messages")
|