Skip to content

Instantly share code, notes, and snippets.

@mturoci
Created September 6, 2022 16:16
Show Gist options
  • Save mturoci/1ff2cafd8ff4c3806fb2bb17ad89b503 to your computer and use it in GitHub Desktop.
Save mturoci/1ff2cafd8ff4c3806fb2bb17ad89b503 to your computer and use it in GitHub Desktop.
from h2o_wave import main, app, Q, ui
@app('/')
async def serve(q: Q):
if not q.client.initialized:
# Upload the file to the Wave server.
download_path, = await q.site.upload(['dataset.csv'])
q.client.initialized = True
# TODO: Draw a UI to allow file downloads.
await q.page.save()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment