Files
rocm_vllm_nightly/app/start_api.py
T
2026-03-29 05:31:19 +08:00

24 lines
395 B
Python

import subprocess
import sys
from app.config import get_settings
def main() -> None:
settings = get_settings()
command = [
sys.executable,
"-m",
"uvicorn",
"app.main:app",
"--host",
settings.host,
"--port",
str(settings.port),
]
raise SystemExit(subprocess.call(command))
if __name__ == "__main__":
main()