broadfield commited on
Commit
0fde696
·
verified ·
1 Parent(s): cc5c293

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -90,9 +90,11 @@ with gr.Blocks(theme="Hev832/Applio-Theme") as b:
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(pp.stream_tts,[in_txt,names,length,noise,width,sen_pause],out_aud)
94
- f6=sub_btn.click(clear_aud,None,out_aud).then(pp.tts,[in_txt,names,length,noise,width,sen_pause],out_aud)
95
- cancel_btn.click(None,None,None,cancels=[f1,f2,f3,f4,f5,f6])
 
 
96
  b.load(init,None,names)
97
 
98
  b.queue(default_concurrency_limit=20).launch(max_threads=40)
 
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)
94
+ f6=stream_btn.click(pp.stream_tts,[in_txt,names,length,noise,width,sen_pause],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
  b.load(init,None,names)
99
 
100
  b.queue(default_concurrency_limit=20).launch(max_threads=40)