Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -464,7 +464,7 @@ with gr.Blocks(theme=gr.themes.Soft(), title="STEMO") as demo:
|
|
| 464 |
batch_btn = gr.Button("Process Batch", variant="primary")
|
| 465 |
batch_output = gr.Markdown()
|
| 466 |
batch_table = gr.Dataframe(label="Preview (first 10 rows)")
|
| 467 |
-
batch_download = gr.File(label="⬇ Download Results", visible=
|
| 468 |
batch_btn.click(gradio_batch_process,
|
| 469 |
[batch_file, batch_model, batch_text_col],
|
| 470 |
[batch_output, batch_table, batch_download])
|
|
@@ -481,7 +481,7 @@ with gr.Blocks(theme=gr.themes.Soft(), title="STEMO") as demo:
|
|
| 481 |
with gr.Row():
|
| 482 |
eval_table = gr.Dataframe(label="Metrics")
|
| 483 |
eval_plot = gr.Image(label="Confusion Matrix")
|
| 484 |
-
eval_download = gr.File(label="⬇ Download Results", visible=
|
| 485 |
eval_btn.click(gradio_evaluate,
|
| 486 |
[eval_file, eval_model, eval_text_col, eval_label_col],
|
| 487 |
[eval_output, eval_table, eval_plot, eval_download])
|
|
|
|
| 464 |
batch_btn = gr.Button("Process Batch", variant="primary")
|
| 465 |
batch_output = gr.Markdown()
|
| 466 |
batch_table = gr.Dataframe(label="Preview (first 10 rows)")
|
| 467 |
+
batch_download = gr.File(label="⬇ Download Results", visible=True)
|
| 468 |
batch_btn.click(gradio_batch_process,
|
| 469 |
[batch_file, batch_model, batch_text_col],
|
| 470 |
[batch_output, batch_table, batch_download])
|
|
|
|
| 481 |
with gr.Row():
|
| 482 |
eval_table = gr.Dataframe(label="Metrics")
|
| 483 |
eval_plot = gr.Image(label="Confusion Matrix")
|
| 484 |
+
eval_download = gr.File(label="⬇ Download Results", visible=True)
|
| 485 |
eval_btn.click(gradio_evaluate,
|
| 486 |
[eval_file, eval_model, eval_text_col, eval_label_col],
|
| 487 |
[eval_output, eval_table, eval_plot, eval_download])
|