Akjava commited on
Commit
f6a60cd
·
verified ·
1 Parent(s): a1cc86d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
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.MatchaTTSEn(window.replaceSpecialChars(text))
 
 
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")