Update app.py
Browse files
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 |
-
|
| 291 |
-
|
| 292 |
-
|
| 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 |
-
|
| 303 |
-
|
| 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)
|