import subprocess subprocess.run("uvicorn app:app --host 0.0.0.0 --port 8501", shell=True)