""" source .venv/bin/activate # 仓库根 hfut-bishe/.venv cd python_server && uvicorn app.main:app --host 0.0.0.0 --port 8000 """ from __future__ import annotations import os 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)