Update app.py
Browse files
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(
|
| 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)
|