Update app.py
Browse files
app.py
CHANGED
@@ -87,7 +87,7 @@ with gr.Blocks() as b:
|
|
87 |
with gr.Accordion("Model Config"):
|
88 |
json_ob=gr.JSON(label="JSON")
|
89 |
f1=stream.change(button_on,stream,[stream_btn,sub_btn])
|
90 |
-
f2=save_btn.click(save_set,[names,length,noise,width,sen_pause],save_file)
|
91 |
f3=load_file.change(load_set,load_file,[names,length,noise,width,sen_pause])
|
92 |
# f4=names.change(load_mod,names,json_ob).then(clear_aud,None,out_aud)
|
93 |
f5=stream_btn.click(clear_aud,None,out_aud)
|
@@ -95,7 +95,7 @@ with gr.Blocks() as b:
|
|
95 |
f7=sub_btn.click(clear_aud,None,out_aud)
|
96 |
f8=sub_btn.click(pp.tts,[in_txt,names,length,noise,width,sen_pause],out_aud)
|
97 |
# cancel_btn.click(None,None,None,cancels=[f1,f2,f3,f4,f5,f6,f7,f8])
|
98 |
-
cancel_btn.click(None,None,None,cancels=[f1,
|
99 |
b.load(init,None,names)
|
100 |
|
101 |
b.queue(default_concurrency_limit=20).launch(max_threads=40)
|
|
|
87 |
with gr.Accordion("Model Config"):
|
88 |
json_ob=gr.JSON(label="JSON")
|
89 |
f1=stream.change(button_on,stream,[stream_btn,sub_btn])
|
90 |
+
# f2=save_btn.click(save_set,[names,length,noise,width,sen_pause],save_file)
|
91 |
f3=load_file.change(load_set,load_file,[names,length,noise,width,sen_pause])
|
92 |
# f4=names.change(load_mod,names,json_ob).then(clear_aud,None,out_aud)
|
93 |
f5=stream_btn.click(clear_aud,None,out_aud)
|
|
|
95 |
f7=sub_btn.click(clear_aud,None,out_aud)
|
96 |
f8=sub_btn.click(pp.tts,[in_txt,names,length,noise,width,sen_pause],out_aud)
|
97 |
# cancel_btn.click(None,None,None,cancels=[f1,f2,f3,f4,f5,f6,f7,f8])
|
98 |
+
cancel_btn.click(None,None,None,cancels=[f1,f3,f5,f6,f7,f8])
|
99 |
b.load(init,None,names)
|
100 |
|
101 |
b.queue(default_concurrency_limit=20).launch(max_threads=40)
|