Spaces:
Sleeping
Sleeping
Download run.py from gradio/image-simple: direct link, hf CLI and curl.
- Browser
- Download file 237 Bytes
-
https://huggingface.co/spaces/gradio/image-simple/resolve/main/run.py
- Command line
-
hf download hf://spaces/gradio/image-simple/run.py
-
curl -L -o run.py https://huggingface.co/spaces/gradio/image-simple/resolve/main/run.py
237 Bytes
| import gradio as gr | |
| def image(im): | |
| return im | |
| with gr.Blocks() as demo: | |
| im = gr.Image() | |
| im2 = gr.Image() | |
| btn = gr.Button() | |
| btn.click(lambda x: x, outputs=im2, inputs=im) | |
| if __name__ == "__main__": | |
| demo.launch() | |