iopaint-mat / app.py
thean's picture
Update app.py
9099823 verified
raw
history blame contribute delete
265 Bytes
import subprocess
if __name__ == "__main__":
cmd = "iopaint start --model mat --host 0.0.0.0 --port 7860 --enable-interactive-seg --interactive-seg-model=vit_b --interactive-seg-device=cpu"
# start subprocess using cmd
subprocess.run(cmd, shell=True)