import subprocess subprocess.run("uvicorn colorization:app --reload", shell=True) # --host 0.0.0.0 --port 7860", shell=True)