Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
|
|
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:
|