Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -311,6 +311,11 @@ def create_vibecheck_results_ui():
|
|
311 |
outputs=[load_examples_md],
|
312 |
)
|
313 |
|
|
|
|
|
|
|
|
|
|
|
314 |
# Function to convert DataFrame to CSV and return for download
|
315 |
def download_dataframe(results_dict):
|
316 |
if not results_dict or "df" not in results_dict:
|
|
|
311 |
outputs=[load_examples_md],
|
312 |
)
|
313 |
|
314 |
+
# Add a download button and file component
|
315 |
+
with gr.Row():
|
316 |
+
download_btn = gr.Button("Download DataFrame as CSV", variant="secondary")
|
317 |
+
download_file = gr.File(label="Download CSV", interactive=False)
|
318 |
+
|
319 |
# Function to convert DataFrame to CSV and return for download
|
320 |
def download_dataframe(results_dict):
|
321 |
if not results_dict or "df" not in results_dict:
|