Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -178,15 +178,17 @@ with gr.Blocks(css=style,head=head) as b:
|
|
178 |
with gr.Row():
|
179 |
gr.Column(scale=1)
|
180 |
with gr.Column(scale=3):
|
181 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
182 |
sub=gr.Button(elem_id='big_btn')
|
183 |
-
|
184 |
-
names=gr.Dropdown(choices=pp.key_list,value="en_US-lessac-high")
|
185 |
-
length=gr.Slider(label="Length", minimum=0.01, maximum=10.0, value=1)
|
186 |
-
noise=gr.Slider(label="Noise", minimum=0.01, maximum=3.0, value=0.5)
|
187 |
-
width=gr.Slider(label="Noise Width", minimum=0.01, maximum=3.0, value=0.5)
|
188 |
-
sen_pause=gr.Slider(label="Sentence Pause", minimum=0.1, maximum=10.0, value=1)
|
189 |
-
upd_btn=gr.Button("Update")
|
190 |
with gr.Group():
|
191 |
with gr.Row():
|
192 |
prev_btn=gr.Button("Previous",interactive=False)
|
@@ -203,6 +205,6 @@ with gr.Blocks(css=style,head=head) as b:
|
|
203 |
|
204 |
next_btn.click(next_show,[hid_start],[prev_btn,hid_start]).then(show_num,hid_start,show_html).then(search,[query,num,hid_start],[html_out])
|
205 |
prev_btn.click(prev_show,[hid_start],[prev_btn,hid_start]).then(show_num,hid_start,show_html).then(search,[query,num,hid_start],[html_out])
|
206 |
-
upd_btn.click(search,[query,num,hid_start,names,length,noise,width,sen_pause],[html_out])
|
207 |
sub.click(search,[query,num,hid_start,names,length,noise,width,sen_pause],[html_out]).then(show_num,hid_start,show_html)
|
208 |
b.queue(default_concurrency_limit=20).launch(max_threads=40)
|
|
|
178 |
with gr.Row():
|
179 |
gr.Column(scale=1)
|
180 |
with gr.Column(scale=3):
|
181 |
+
with gr.Group():
|
182 |
+
query=gr.Textbox(label="Query",info="Search arXiv papers")
|
183 |
+
with gr.Accordion("Voice Controls",open=False):
|
184 |
+
names=gr.Dropdown(choices=pp.key_list,value="en_US-lessac-high")
|
185 |
+
length=gr.Slider(label="Length", minimum=0.01, maximum=10.0, value=1)
|
186 |
+
noise=gr.Slider(label="Noise", minimum=0.01, maximum=3.0, value=0.5)
|
187 |
+
width=gr.Slider(label="Noise Width", minimum=0.01, maximum=3.0, value=0.5)
|
188 |
+
sen_pause=gr.Slider(label="Sentence Pause", minimum=0.1, maximum=10.0, value=1)
|
189 |
+
upd_btn=gr.Button("Update")
|
190 |
sub=gr.Button(elem_id='big_btn')
|
191 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
192 |
with gr.Group():
|
193 |
with gr.Row():
|
194 |
prev_btn=gr.Button("Previous",interactive=False)
|
|
|
205 |
|
206 |
next_btn.click(next_show,[hid_start],[prev_btn,hid_start]).then(show_num,hid_start,show_html).then(search,[query,num,hid_start],[html_out])
|
207 |
prev_btn.click(prev_show,[hid_start],[prev_btn,hid_start]).then(show_num,hid_start,show_html).then(search,[query,num,hid_start],[html_out])
|
208 |
+
upd_btn.click(search,[query,num,hid_start,names,length,noise,width,sen_pause],[html_out]).then(show_num,hid_start,show_html)
|
209 |
sub.click(search,[query,num,hid_start,names,length,noise,width,sen_pause],[html_out]).then(show_num,hid_start,show_html)
|
210 |
b.queue(default_concurrency_limit=20).launch(max_threads=40)
|