justmotes commited on
Commit
bd7d6a3
·
1 Parent(s): 9ecf313

Fix: Pin Gradio version and simplify interactions

Browse files
Files changed (2) hide show
  1. app.py +1 -12
  2. requirements.txt +1 -1
app.py CHANGED
@@ -371,25 +371,14 @@ with gr.Blocks(theme=gr.themes.Base(), css=None, head=HEAD_HTML) as demo:
371
  # Footer Info
372
  gr.HTML(FOOTER_INFO_HTML)
373
 
374
- # Interactions: Chained Events
375
- # 1. Show Loader immediately
376
- # 2. Run Benchmark and show results
377
-
378
  submit_btn.click(
379
- show_loader,
380
- inputs=None,
381
- outputs=[results_area]
382
- ).then(
383
  run_benchmark,
384
  inputs=[query_input],
385
  outputs=[results_area]
386
  )
387
 
388
  query_input.submit(
389
- show_loader,
390
- inputs=None,
391
- outputs=[results_area]
392
- ).then(
393
  run_benchmark,
394
  inputs=[query_input],
395
  outputs=[results_area]
 
371
  # Footer Info
372
  gr.HTML(FOOTER_INFO_HTML)
373
 
374
+ # Interactions: Simplified (Single Step)
 
 
 
375
  submit_btn.click(
 
 
 
 
376
  run_benchmark,
377
  inputs=[query_input],
378
  outputs=[results_area]
379
  )
380
 
381
  query_input.submit(
 
 
 
 
382
  run_benchmark,
383
  inputs=[query_input],
384
  outputs=[results_area]
requirements.txt CHANGED
@@ -7,4 +7,4 @@ numpy
7
  pandas
8
  tqdm
9
  einops
10
- gradio
 
7
  pandas
8
  tqdm
9
  einops
10
+ gradio==4.44.1