Geonomic commited on
Commit
f49f77b
·
verified ·
1 Parent(s): 922a589

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -329,11 +329,9 @@ with gr.Blocks(theme=gr.themes.Soft(), title="🧬 The Genomic Oracle 🧬", css
329
  outputs=[mapping_section]
330
  )
331
 
 
332
  submit_btn.click(
333
- fn=lambda seq, map_flag: (
334
- *gradio_inference(seq, map_flag)[:3],
335
- gr.Textbox(visible=True) if map_flag else gr.Textbox(visible=False)
336
- ),
337
  inputs=[dna_input, run_mapping_cb],
338
  outputs=[output_summary, stats_panel, context_output, info_box]
339
  )
 
329
  outputs=[mapping_section]
330
  )
331
 
332
+ # 🚨 Pinned directly to the generator function to allow live-streaming!
333
  submit_btn.click(
334
+ fn=gradio_inference,
 
 
 
335
  inputs=[dna_input, run_mapping_cb],
336
  outputs=[output_summary, stats_panel, context_output, info_box]
337
  )