Files
hfut-bishe/python_server/server.py
T
2026-05-14 18:37:18 +08:00

18 lines
294 B
Python

from __future__ import annotations
import os
from dotenv import load_dotenv
load_dotenv()
from app.main import app
__all__ = ["app"]
if __name__ == "__main__":
import uvicorn
port = int(os.environ.get("MODEL_SERVER_PORT", "8000"))
uvicorn.run(app, host="0.0.0.0", port=port)