aggtamv commited on
Commit
0c20e02
·
1 Parent(s): 1e22d48

Fix UI bug

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -73,8 +73,10 @@ with gr.Blocks() as app:
73
  predict_btn.click(fn=predict_from_table, inputs=input_table, outputs=output_text)
74
 
75
  with gr.Tab("📂 Upload CSV"):
76
- file_input = gr.File(label="Upload CSV with shape (10×20)")
77
- file_output = gr.Textbox(label="Prediction")
78
- gr.Interface(fn=predict_from_csv, inputs=file_input, outputs=file_output).render()
 
 
79
 
80
  app.launch(share=True)
 
73
  predict_btn.click(fn=predict_from_table, inputs=input_table, outputs=output_text)
74
 
75
  with gr.Tab("📂 Upload CSV"):
76
+ with gr.Row():
77
+ file_input = gr.File(label="Upload CSV with shape (10×20)")
78
+ file_output = gr.Textbox(label="Prediction")
79
+
80
+ file_input.change(fn=predict_from_csv, inputs=file_input, outputs=file_output)
81
 
82
  app.launch(share=True)