Spaces:
Sleeping
Sleeping
[update][abaoxomtieu]: update path
Browse files
app.py
CHANGED
|
@@ -1,5 +1,4 @@
|
|
| 1 |
from dotenv import load_dotenv
|
| 2 |
-
from src.inference.segment_inference import inference
|
| 3 |
from src.utils.utils_segment import extract_text, draw_bounding_boxes
|
| 4 |
from fastapi import FastAPI, UploadFile, status, Form, File
|
| 5 |
from fastapi.responses import JSONResponse
|
|
@@ -18,6 +17,7 @@ import asyncio
|
|
| 18 |
import os
|
| 19 |
import functools
|
| 20 |
import threading
|
|
|
|
| 21 |
load_dotenv()
|
| 22 |
app = FastAPI(docs_url="/")
|
| 23 |
app.add_middleware(
|
|
|
|
| 1 |
from dotenv import load_dotenv
|
|
|
|
| 2 |
from src.utils.utils_segment import extract_text, draw_bounding_boxes
|
| 3 |
from fastapi import FastAPI, UploadFile, status, Form, File
|
| 4 |
from fastapi.responses import JSONResponse
|
|
|
|
| 17 |
import os
|
| 18 |
import functools
|
| 19 |
import threading
|
| 20 |
+
from src.inference.segment_inference import inference
|
| 21 |
load_dotenv()
|
| 22 |
app = FastAPI(docs_url="/")
|
| 23 |
app.add_middleware(
|