mbarnig commited on
Commit
dab0da4
·
verified ·
1 Parent(s): 26bf1b1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -15
app.py CHANGED
@@ -60,22 +60,7 @@ with gr.Blocks() as b:
60
  sub_btn=gr.Button(interactive=False,visible=False)
61
  cancel_btn=gr.Button("Stop")
62
  out_aud=gr.Audio(streaming=True, autoplay=True)
63
- with gr.Column(scale=1):
64
- with gr.Accordion("Control"):
65
- stream=gr.Checkbox(label="Stream",info="Streaming is fast, but lower quality",value=True,interactive=True)
66
- length=gr.Slider(label="Length", minimum=0.01, maximum=10.0, value=1)
67
- noise=gr.Slider(label="Noise", minimum=0.01, maximum=3.0, value=1)
68
- width=gr.Slider(label="Noise Width", minimum=0.01, maximum=3.0, value=1)
69
- sen_pause=gr.Slider(label="Sentence Pause", minimum=0.1, maximum=10.0, value=1)
70
- with gr.Tab("Save Settings"):
71
- save_btn=gr.Button("Save")
72
- save_file=gr.File()
73
- with gr.Tab("Load Settings"):
74
- load_file=gr.File()
75
- with gr.Column(scale=1):
76
 
77
- with gr.Accordion("Model Config"):
78
- json_ob=gr.JSON(label="JSON")
79
  f1=stream.change(button_on,stream,[stream_btn,sub_btn])
80
  f2=save_btn.click(save_set,[names,length,noise,width,sen_pause],save_file)
81
  f3=load_file.change(load_set,load_file,[names,length,noise,width,sen_pause])
 
60
  sub_btn=gr.Button(interactive=False,visible=False)
61
  cancel_btn=gr.Button("Stop")
62
  out_aud=gr.Audio(streaming=True, autoplay=True)
 
 
 
 
 
 
 
 
 
 
 
 
 
63
 
 
 
64
  f1=stream.change(button_on,stream,[stream_btn,sub_btn])
65
  f2=save_btn.click(save_set,[names,length,noise,width,sen_pause],save_file)
66
  f3=load_file.change(load_set,load_file,[names,length,noise,width,sen_pause])