优化时间
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,21 @@
|
||||
import os
|
||||
from pathlib import Path
|
||||
|
||||
API_HOST = os.getenv(
|
||||
"API_HOST",
|
||||
"http://skin-test-api.ailuowan.com"
|
||||
)
|
||||
|
||||
API_CALLBACK = os.getenv(
|
||||
"API_CALLBACK",
|
||||
"/api/v1/analysis/callback"
|
||||
)
|
||||
|
||||
# SQLite must reside on persistent local storage; Compose uses /data/analysis.
|
||||
TASK_DB_PATH = os.getenv(
|
||||
"TASK_DB_PATH", str(Path(__file__).resolve().parent.parent / "data" / "tasks.sqlite3")
|
||||
)
|
||||
MAX_CONCURRENT_TASKS = int(os.getenv("MAX_CONCURRENT_TASKS", "1"))
|
||||
MAX_PENDING_TASKS = int(os.getenv("MAX_PENDING_TASKS", "100"))
|
||||
MODEL_PATH = os.getenv("MODEL_PATH", str(Path(__file__).resolve().parent.parent / "best.pt"))
|
||||
IMAGE_WORKERS = int(os.getenv("IMAGE_WORKERS", "4"))
|
||||
Reference in New Issue
Block a user