nesticot commited on
Commit
74b0abb
·
verified ·
1 Parent(s): e2766f6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -14
app.py CHANGED
@@ -287,21 +287,15 @@ def server(input, output, session):
287
  # # Get the string value and return it
288
  # return buffer.getvalue()
289
 
290
- # Reactive expression for the dataset
291
- @reactive.calc
292
- def dataset():
293
- np.random.seed(123)
294
- return pd.DataFrame({
295
- 'x': np.random.normal(0, 1, input.num_points()),
296
- 'y': np.random.normal(0, 1, input.num_points())
297
- })
298
-
299
- # Download handler for CSV
300
- @session.download(filename="data.csv")
301
  def download_data():
302
- # Get the current dataset and save it to CSV
303
- return dataset().to_csv(index=False)
304
-
 
 
305
 
306
 
307
  app = App(app_ui, server)
 
287
  # # Get the string value and return it
288
  # return buffer.getvalue()
289
 
290
+
291
+
292
+ @session.download()
 
 
 
 
 
 
 
 
293
  def download_data():
294
+ pass
295
+
296
+
297
+ app = App(app_ui, server)
298
+
299
 
300
 
301
  app = App(app_ui, server)