18 lines
294 B
Python
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", "8800"))
|
|
uvicorn.run(app, host="0.0.0.0", port=port)
|