Akjava commited on
Commit
83c68a5
·
verified ·
1 Parent(s): 190b1d7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -7
app.py CHANGED
@@ -52,7 +52,7 @@ with gr.Blocks(title="LLM with TTS",head=head) as demo:
52
  text = (chatbot[chatbot.length -1])["content"]
53
  tts_text = window.replaceSpecialChars(text)
54
  console.log(tts_text)
55
- window.MatchaTTSEn(tts_text,"./models/test.txt")
56
  }
57
  """
58
  chatbot = gr.Chatbot(type="messages")
@@ -80,10 +80,5 @@ with gr.Blocks(title="LLM with TTS",head=head) as demo:
80
 
81
  msg.submit(call_generate_text, [msg, chatbot], [msg, chatbot])
82
 
83
- import os
84
- pwd = "/home/user/app/" #os.getcwd()
85
- #print(pwd)
86
- path=(os.path.join(pwd,"models"))
87
- print(path)
88
 
89
- demo.launch(allowed_paths=[path])
 
52
  text = (chatbot[chatbot.length -1])["content"]
53
  tts_text = window.replaceSpecialChars(text)
54
  console.log(tts_text)
55
+ window.MatchaTTSEn(tts_text,"./models/ljspeech_sim.onnx")
56
  }
57
  """
58
  chatbot = gr.Chatbot(type="messages")
 
80
 
81
  msg.submit(call_generate_text, [msg, chatbot], [msg, chatbot])
82
 
 
 
 
 
 
83
 
84
+ demo.launch(allowed_paths=["/home/user/app/models/"])