Spaces:
Runtime error
Runtime error
Download app.py from mujahid1214/Image-editor: direct link, hf CLI and curl.
- Browser
- Download file 347 Bytes
-
https://huggingface.co/spaces/mujahid1214/Image-editor/resolve/main/app.py
- Command line
-
hf download hf://spaces/mujahid1214/Image-editor/app.py
-
curl -L -o app.py https://huggingface.co/spaces/mujahid1214/Image-editor/resolve/main/app.py
347 Bytes
| import gradio as gr | |
| def generate_fake_image(prompt, seed, initial_image=None): | |
| return f"Used seed: {seed}", "https://dummyimage.com/300/09f.png" | |
| demo = gr.Interface( | |
| generate_fake_image, | |
| inputs=["textbox"], | |
| outputs=["textbox", "image"], | |
| additional_inputs=[ | |
| gr.Slider(0, 1000), | |
| "image" | |
| ] | |
| ) | |
| demo.launch() | |