nesticot commited on
Commit
24a438d
·
verified ·
1 Parent(s): 22f2a41

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -11
app.py CHANGED
@@ -88,7 +88,6 @@ app_ui = ui.page_fluid(
88
 
89
  # Row for the action button to generate plot
90
  ui.row(ui.input_action_button("generate_plot", "Generate Plot", class_="btn-primary")),
91
- ui.row(ui.download_button("download_data", "Download CSV"))
92
  ),
93
 
94
  ui.panel_main(
@@ -276,16 +275,6 @@ 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
- # Create a string buffer and write the CSV to it
282
- sio = StringIO()
283
- cached_data().to_pandas().to_csv(sio, index=False)
284
- sio.seek(0)
285
- content = sio.getvalue()
286
-
287
- # Return the CSV content
288
- return content
289
 
290
 
291
  app = App(app_ui, server)
 
88
 
89
  # Row for the action button to generate plot
90
  ui.row(ui.input_action_button("generate_plot", "Generate Plot", class_="btn-primary")),
 
91
  ),
92
 
93
  ui.panel_main(
 
275
  fig.subplots_adjust(left=0.01, right=0.99, top=0.99, bottom=0.01)
276
 
277
 
 
 
 
 
 
 
 
 
 
 
278
 
279
 
280
  app = App(app_ui, server)