nesticot commited on
Commit
8e30408
·
verified ·
1 Parent(s): 9aade26

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -276,10 +276,10 @@ def server(input, output, session):
276
  fig.subplots_adjust(left=0.01, right=0.99, top=0.99, bottom=0.01)
277
 
278
 
279
- @session.download(filename="sample_data.csv")
280
  def download():
281
  # When running in Hugging Face space, we need to use a temporary file
282
- yield cached_data().write_csv()
283
 
284
 
285
  app = App(app_ui, server)
 
276
  fig.subplots_adjust(left=0.01, right=0.99, top=0.99, bottom=0.01)
277
 
278
 
279
+ @session.download()
280
  def download():
281
  # When running in Hugging Face space, we need to use a temporary file
282
+ yield cached_data().write_csv('data.csv')
283
 
284
 
285
  app = App(app_ui, server)