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