lisabdunlap commited on
Commit
438b334
·
verified ·
1 Parent(s): 12521d7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
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: