Spaces:
Sleeping
Sleeping
Fix UI bug
Browse files
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 |
-
|
| 77 |
-
|
| 78 |
-
|
|
|
|
|
|
|
| 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)
|