Created
September 6, 2022 16:16
-
-
Save mturoci/1ff2cafd8ff4c3806fb2bb17ad89b503 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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