masamasa4 commited on
Commit
b3d168f
·
verified ·
1 Parent(s): f8835a3

Deploy layout-analysis from monorepo

Browse files
Files changed (3) hide show
  1. main.py +10 -0
  2. pyproject.toml +1 -0
  3. uv.lock +0 -0
main.py CHANGED
@@ -1,6 +1,16 @@
 
 
1
  from fastapi import FastAPI
2
 
3
  from controller.extract import router
4
 
 
 
 
 
 
 
5
  app = FastAPI(title="Layout Analysis Service", version="0.1.0")
6
  app.include_router(router)
 
 
 
1
+ import logging
2
+
3
  from fastapi import FastAPI
4
 
5
  from controller.extract import router
6
 
7
+ logging.basicConfig(
8
+ level=logging.DEBUG,
9
+ format="%(asctime)s - %(name)s - %(levelname)s - %(message)s",
10
+ )
11
+ logger = logging.getLogger(__name__)
12
+
13
  app = FastAPI(title="Layout Analysis Service", version="0.1.0")
14
  app.include_router(router)
15
+
16
+ logger.debug("Layout Analysis Service application started successfully.")
pyproject.toml CHANGED
@@ -9,6 +9,7 @@ dependencies = [
9
  "python-multipart>=0.0.20",
10
  "onnxruntime>=1.18.0",
11
  "opencv-python-headless>=4.9.0",
 
12
  "PyMuPDF>=1.25.0",
13
  "huggingface-hub>=1.8.0",
14
  ]
 
9
  "python-multipart>=0.0.20",
10
  "onnxruntime>=1.18.0",
11
  "opencv-python-headless>=4.9.0",
12
+ "pillow>=10.0.0",
13
  "PyMuPDF>=1.25.0",
14
  "huggingface-hub>=1.8.0",
15
  ]
uv.lock CHANGED
The diff for this file is too large to render. See raw diff