Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -9,7 +9,7 @@ from code import (initialize_session,
|
|
| 9 |
|
| 10 |
def export_csv(df):
|
| 11 |
file = df.to_csv("output.csv")
|
| 12 |
-
return
|
| 13 |
|
| 14 |
with gr.Blocks(gr.themes.Soft(primary_hue="emerald",
|
| 15 |
font=[gr.themes.GoogleFont("Quicksand"),"ui-sans-serif", "system-ui", "sans-serif"],
|
|
@@ -70,7 +70,7 @@ with gr.Blocks(gr.themes.Soft(primary_hue="emerald",
|
|
| 70 |
combine_button = gr.Button("Confirm")
|
| 71 |
with gr.Column(scale=1):
|
| 72 |
download_button = gr.DownloadButton("Export")
|
| 73 |
-
csv = gr.File(
|
| 74 |
#with gr.Column(scale=1):
|
| 75 |
#receipt_count_text = gr.Textbox(label="Uploaded files:", interactive=False)
|
| 76 |
|
|
|
|
| 9 |
|
| 10 |
def export_csv(df):
|
| 11 |
file = df.to_csv("output.csv")
|
| 12 |
+
return gr.File(value="output.csv", visible=True)
|
| 13 |
|
| 14 |
with gr.Blocks(gr.themes.Soft(primary_hue="emerald",
|
| 15 |
font=[gr.themes.GoogleFont("Quicksand"),"ui-sans-serif", "system-ui", "sans-serif"],
|
|
|
|
| 70 |
combine_button = gr.Button("Confirm")
|
| 71 |
with gr.Column(scale=1):
|
| 72 |
download_button = gr.DownloadButton("Export")
|
| 73 |
+
csv = gr.File(interactive=False, visible=False)
|
| 74 |
#with gr.Column(scale=1):
|
| 75 |
#receipt_count_text = gr.Textbox(label="Uploaded files:", interactive=False)
|
| 76 |
|