Shreyas094 commited on
Commit
13f7689
·
verified ·
1 Parent(s): a05bdf8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -95,7 +95,8 @@ def extract_db_to_excel():
95
  df.to_excel(writer, index=False)
96
  output.seek(0)
97
 
98
- return output
 
99
 
100
  # Modify the Gradio interface
101
  with gr.Blocks() as demo:
 
95
  df.to_excel(writer, index=False)
96
  output.seek(0)
97
 
98
+ # Return the file data in a format Gradio can handle
99
+ return (output.getvalue(), "database_output.xlsx")
100
 
101
  # Modify the Gradio interface
102
  with gr.Blocks() as demo: