import marimo
__generated_with = "0.8.18-dev11"
app = marimo.App()
@app.cell
def __():
import marimo as mo
return (mo,)
@app.cell
def __(mo):
my_filename = mo.ui.text(label="filename")
my_filename
return (my_filename,)
@app.cell
def __(my_filename):
my_image = my_filename.value # replace with mo.image(...)
my_image
return (my_image,)
@app.cell
def __(mo):
submit = mo.ui.run_button(label="Submit!")
submit.right()
return (submit,)
@app.cell
def __(mo, submit):
mo.stop(not submit.value, mo.md("Click the submit button to proceed ☝️"))
# proceed to do whatever you need to do with the submitted image
mo.md("Thanks for submitting your image!")
return
if __name__ == "__main__":
app.run()