Update app.py
Browse files
app.py
CHANGED
@@ -35,7 +35,7 @@ async function start_multi_line_tts() {
|
|
35 |
tts_text_index += 1
|
36 |
console.log(tts_text)
|
37 |
if (tts_text!=""){
|
38 |
-
await window.MatchaTTSEn(tts_text)
|
39 |
}
|
40 |
|
41 |
|
@@ -100,7 +100,7 @@ textbox=gr.Textbox()
|
|
100 |
with gr.Interface(fn=greet, inputs=input, outputs=textbox,head=head) as demo: #submit_btn=submit
|
101 |
input.submit(None,[],[],js="function(){console.log('submit');window.reset_tts_text()}")
|
102 |
textbox.change(None,[textbox],[],js="""function(text){
|
103 |
-
window.update_tts_texts(text
|
104 |
}""")
|
105 |
#submit click not catch.
|
106 |
#print(demo.inputs)
|
|
|
35 |
tts_text_index += 1
|
36 |
console.log(tts_text)
|
37 |
if (tts_text!=""){
|
38 |
+
await window.MatchaTTSEn(tts_text,"./ljspeech_sim.onnx")
|
39 |
}
|
40 |
|
41 |
|
|
|
100 |
with gr.Interface(fn=greet, inputs=input, outputs=textbox,head=head) as demo: #submit_btn=submit
|
101 |
input.submit(None,[],[],js="function(){console.log('submit');window.reset_tts_text()}")
|
102 |
textbox.change(None,[textbox],[],js="""function(text){
|
103 |
+
window.update_tts_texts(text)
|
104 |
}""")
|
105 |
#submit click not catch.
|
106 |
#print(demo.inputs)
|