broadfield commited on
Commit
fb759c5
·
verified ·
1 Parent(s): 9976c65

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -88,14 +88,15 @@ function () {
88
  } else {
89
  p_pau = "1";
90
  };
91
- run(p_pdf)
92
  return [p_pdf, p_mod, p_len, p_nos, p_wid, p_pau];
93
  }
 
 
94
  """
95
 
96
  with gr.Blocks(head=head) as app:
97
  a=gr.Audio(streaming=True,autoplay=True)
98
- h=gr.HTML("""<div id='cap'></div>""")
99
 
100
  with gr.Accordion("Voice Controls",open=False):
101
  with gr.Row():
@@ -107,7 +108,7 @@ with gr.Blocks(head=head) as app:
107
  n=gr.Slider(label="Noise", minimum=0.01, maximum=3.0, value=0.5,interactive=True)
108
  w=gr.Slider(label="Noise Width", minimum=0.01, maximum=3.0, value=0.5,interactive=True)
109
  p=gr.Slider(label="Sentence Pause", minimum=0.1, maximum=10.0, value=1,interactive=True)
110
- upd_btn=gr.Button("Update")
111
  with gr.Column(visible=False):
112
  bulk=gr.Textbox(label="bulk",interactive=False,visible=True)
113
 
 
88
  } else {
89
  p_pau = "1";
90
  };
 
91
  return [p_pdf, p_mod, p_len, p_nos, p_wid, p_pau];
92
  }
93
+ run(p_pdf)
94
+
95
  """
96
 
97
  with gr.Blocks(head=head) as app:
98
  a=gr.Audio(streaming=True,autoplay=True)
99
+
100
 
101
  with gr.Accordion("Voice Controls",open=False):
102
  with gr.Row():
 
108
  n=gr.Slider(label="Noise", minimum=0.01, maximum=3.0, value=0.5,interactive=True)
109
  w=gr.Slider(label="Noise Width", minimum=0.01, maximum=3.0, value=0.5,interactive=True)
110
  p=gr.Slider(label="Sentence Pause", minimum=0.1, maximum=10.0, value=1,interactive=True)
111
+ h=gr.HTML("""<div id='cap'></div>""")
112
  with gr.Column(visible=False):
113
  bulk=gr.Textbox(label="bulk",interactive=False,visible=True)
114