Spaces:
Runtime error
Runtime error
Download app.py from Sanster/iopaint-migan: direct link, hf CLI and curl.
- Browser
- Download file 182 Bytes
-
https://huggingface.co/spaces/Sanster/iopaint-migan/resolve/main/app.py
- Command line
-
hf download hf://spaces/Sanster/iopaint-migan/app.py
-
curl -L -o app.py https://huggingface.co/spaces/Sanster/iopaint-migan/resolve/main/app.py
182 Bytes
| import subprocess | |
| if __name__ == "__main__": | |
| cmd = "iopaint start --model migan --host 0.0.0.0 --port 7860" | |
| # start subprocess using cmd | |
| subprocess.run(cmd, shell=True) | |