Update app.py
Browse files275 unmodified lines276277278279280281282283284285275 unmodified linesfig.subplots_adjust(left=0.01, right=0.99, top=0.99, bottom=0.01)@session.download(filename="sample_data.csv")def download():# When running in Hugging Face space, we need to use a temporary fileyield cached_data().write_csv()app = App(app_ui, server)275 unmodified lines276277278279280281282283284285275 unmodified linesfig.subplots_adjust(left=0.01, right=0.99, top=0.99, bottom=0.01)@session.download()def download():# When running in Hugging Face space, we need to use a temporary fileyield cached_data().write_csv('data.csv')app = App(app_ui, server)
app.py+2-2