broadfield commited on
Commit
687307e
·
verified ·
1 Parent(s): 3153988

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -47,9 +47,9 @@ def exp3():
47
  return(gr.update(value=txt),gr.update(value=exp_file))
48
  def stream_check(checked,in_txt,names,length,noise,width,sen_pause):
49
  if checked:
50
- yield pp.stream_tts(in_txt,names,length,noise,width,sen_pause)
51
  else:
52
- return pp.tts(in_txt,names,length,noise,width,sen_pause)
53
 
54
 
55
  with gr.Blocks(theme="Hev832/Applio-Theme") as b:
@@ -60,7 +60,7 @@ with gr.Blocks(theme="Hev832/Applio-Theme") as b:
60
  with gr.Row():
61
  with gr.Column(scale=1):
62
  with gr.Accordion("Control"):
63
- stream=gr.Checkbox(value=True)
64
  length=gr.Slider(label="Length", minimum=0.01, maximum=10.0, value=1)
65
  noise=gr.Slider(label="Noise", minimum=0.01, maximum=3.0, value=1)
66
  width=gr.Slider(label="Noise Width", minimum=0.01, maximum=3.0, value=1)
 
47
  return(gr.update(value=txt),gr.update(value=exp_file))
48
  def stream_check(checked,in_txt,names,length,noise,width,sen_pause):
49
  if checked:
50
+ yield pp.stream_tts(in_txt,names,length,noise,width,sen_pause).getvalue()
51
  else:
52
+ return pp.tts(in_txt,names,length,noise,width,sen_pause).getvalue()
53
 
54
 
55
  with gr.Blocks(theme="Hev832/Applio-Theme") as b:
 
60
  with gr.Row():
61
  with gr.Column(scale=1):
62
  with gr.Accordion("Control"):
63
+ stream=gr.Checkbox(value=True,interactive=True)
64
  length=gr.Slider(label="Length", minimum=0.01, maximum=10.0, value=1)
65
  noise=gr.Slider(label="Noise", minimum=0.01, maximum=3.0, value=1)
66
  width=gr.Slider(label="Noise Width", minimum=0.01, maximum=3.0, value=1)