fffiloni commited on
Commit
ca347d5
1 Parent(s): bdd2a21

disabling queue for utility methods

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -360,8 +360,8 @@ with gr.Blocks(css=css) as demo:
360
  clean_micro = gr.Checkbox(label="Clean sample ?", value=False)
361
  micro_submit_btn = gr.Button("Submit")
362
 
363
- audio_in.upload(fn=load_hidden, inputs=[audio_in], outputs=[hidden_audio_numpy])
364
- micro_in.stop_recording(fn=load_hidden_mic, inputs=[micro_in], outputs=[hidden_audio_numpy])
365
 
366
 
367
  with gr.Tab("Voices Characters"):
@@ -416,7 +416,7 @@ with gr.Blocks(css=css) as demo:
416
  loading_icon = gr.HTML(loading_icon_html)
417
  share_button = gr.Button("Share with Community", elem_id="share-btn")
418
 
419
- share_button.click(None, [], [], _js=share_js)
420
 
421
  gallery_in.select(
422
  update_selection,
@@ -425,8 +425,8 @@ with gr.Blocks(css=css) as demo:
425
  show_progress=False,
426
  )
427
 
428
- audio_in.change(fn=wipe_npz_file, inputs=[folder_path])
429
- micro_in.clear(fn=wipe_npz_file, inputs=[folder_path])
430
 
431
  gr.Examples(
432
  examples = [
 
360
  clean_micro = gr.Checkbox(label="Clean sample ?", value=False)
361
  micro_submit_btn = gr.Button("Submit")
362
 
363
+ audio_in.upload(fn=load_hidden, inputs=[audio_in], outputs=[hidden_audio_numpy], queue=False)
364
+ micro_in.stop_recording(fn=load_hidden_mic, inputs=[micro_in], outputs=[hidden_audio_numpy], queue=False)
365
 
366
 
367
  with gr.Tab("Voices Characters"):
 
416
  loading_icon = gr.HTML(loading_icon_html)
417
  share_button = gr.Button("Share with Community", elem_id="share-btn")
418
 
419
+ share_button.click(None, [], [], _js=share_js, queue=False)
420
 
421
  gallery_in.select(
422
  update_selection,
 
425
  show_progress=False,
426
  )
427
 
428
+ audio_in.change(fn=wipe_npz_file, inputs=[folder_path], queue=False)
429
+ micro_in.clear(fn=wipe_npz_file, inputs=[folder_path], queue=False)
430
 
431
  gr.Examples(
432
  examples = [