Update app.py
Browse files
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/
|
| 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=[
|
|
|
|
| 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/"])
|