Spaces:
Runtime error
Runtime error
Download app.py from hmb/image_info: direct link, hf CLI and curl.
- Browser
- Download file 377 Bytes
-
https://huggingface.co/spaces/hmb/image_info/resolve/main/app.py
- Command line
-
hf download hf://spaces/hmb/image_info/app.py
-
curl -L -o app.py https://huggingface.co/spaces/hmb/image_info/resolve/main/app.py
377 Bytes
| import gradio as gr | |
| def image(im): | |
| return im | |
| with gr.Blocks() as demo: | |
| im = gr.Image(placeholder="""# a heading!\n\na new line!\na new line!""") | |
| im2 = gr.ImageEditor(placeholder="""# a heading!\n\na new line!\na new line!""", interactive=True) | |
| btn = gr.Button() | |
| btn.click(lambda x: x, outputs=im2, inputs=im) | |
| if __name__ == "__main__": | |
| demo.launch() | |