timfocus commited on
Commit
8ebd0d2
·
verified ·
1 Parent(s): 20ab6ba

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -76,7 +76,7 @@ with gr.Blocks() as demo:
76
  gr.Markdown("# 📦 Shipping CSV Generator")
77
  gr.Markdown("Click the button below to generate and download a CSV file.")
78
  btn = gr.Button("Generate CSV")
79
- output = gr.File(label="Download your CSV", type="file") # Ensure correct file type
80
  btn.click(fn=download_csv, outputs=output)
81
 
82
  if __name__ == "__main__":
 
76
  gr.Markdown("# 📦 Shipping CSV Generator")
77
  gr.Markdown("Click the button below to generate and download a CSV file.")
78
  btn = gr.Button("Generate CSV")
79
+ output = gr.File(label="Download your CSV", type="filepath") # FIXED: Changed 'file' to 'filepath'
80
  btn.click(fn=download_csv, outputs=output)
81
 
82
  if __name__ == "__main__":