Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -99,8 +99,9 @@ def export_predictions():
|
|
| 99 |
global df_predict_results
|
| 100 |
if df_predict_results is None:
|
| 101 |
return None
|
| 102 |
-
|
| 103 |
-
|
|
|
|
| 104 |
|
| 105 |
with gr.Blocks() as demo:
|
| 106 |
gr.Markdown("# 🧠 Text Classification App")
|
|
|
|
| 99 |
global df_predict_results
|
| 100 |
if df_predict_results is None:
|
| 101 |
return None
|
| 102 |
+
export_path = "/mnt/data/predictions_output.xlsx" # Gradio environment allows writing here
|
| 103 |
+
df_predict_results.to_excel(export_path, index=False)
|
| 104 |
+
return export_path
|
| 105 |
|
| 106 |
with gr.Blocks() as demo:
|
| 107 |
gr.Markdown("# 🧠 Text Classification App")
|