diff --git a/docling_serve/__main__.py b/docling_serve/__main__.py index 2a86042..e4da80d 100644 --- a/docling_serve/__main__.py +++ b/docling_serve/__main__.py @@ -1,6 +1,5 @@ import os -from docling_serve.app import app from docling_serve.helper_functions import _str_to_bool # Launch the FastAPI server @@ -10,8 +9,9 @@ if __name__ == "__main__": port = int(os.getenv("PORT", "5001")) workers = int(os.getenv("UVICORN_WORKERS", "1")) reload = _str_to_bool(os.getenv("RELOAD", "False")) + run( - app, + "docling_serve.app:app", host="0.0.0.0", port=port, workers=workers,