Spaces:
Runtime error
Runtime error
UI fixes
Browse files
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 |
-
|
|
|
|
|
|
|
| 79 |
|
| 80 |
-
|
| 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)
|