aggtamv commited on
Commit
ff366d3
·
1 Parent(s): 0c20e02
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -75,8 +75,10 @@ with gr.Blocks() as app:
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)
 
75
  with gr.Tab("📂 Upload CSV"):
76
  with gr.Row():
77
  file_input = gr.File(label="Upload CSV with shape (10×20)")
78
+ predict_btn = gr.Button("Predict")
79
+
80
+ file_output = gr.Textbox(label="Prediction")
81
 
82
+ predict_btn.click(fn=predict_from_csv, inputs=file_input, outputs=file_output)
83
 
84
  app.launch(share=True)