Fix flow
This commit is contained in:
@@ -11,6 +11,8 @@ class Settings:
|
||||
hdfs_native_uri: str = os.getenv("IDP_HDFS_NATIVE_URI", "")
|
||||
api_key: str = os.getenv("IDP_API_KEY", "")
|
||||
callback_hosts: str = os.getenv("IDP_CALLBACK_HOSTS", "")
|
||||
callback_basic_user: str = os.getenv("IDP_CALLBACK_BASIC_USER", "")
|
||||
callback_basic_password: str = os.getenv("IDP_CALLBACK_BASIC_PASSWORD", "")
|
||||
ocr_url: str = os.getenv("IDP_OCR_URL", "http://localhost:9222/v1/chat/completions")
|
||||
ocr_model: str = os.getenv("IDP_OCR_MODEL", "chandra")
|
||||
ocr_backend: str = os.getenv("IDP_OCR_BACKEND", "http") # http hoặc pdf_text
|
||||
@@ -19,6 +21,7 @@ class Settings:
|
||||
kie_model: str = os.getenv("IDP_KIE_MODEL") or os.getenv("IDP_OCR_MODEL", "chandra")
|
||||
kie_max_pages: int = int(os.getenv("IDP_KIE_MAX_PAGES", "5"))
|
||||
kie_timeout: int = int(os.getenv("IDP_KIE_TIMEOUT", "300"))
|
||||
kie_max_tokens: int = int(os.getenv("IDP_KIE_MAX_TOKENS", "2048"))
|
||||
max_kie_attempts: int = int(os.getenv("IDP_MAX_KIE_ATTEMPTS", "3"))
|
||||
run_worker: bool = os.getenv("IDP_RUN_WORKER", "0").lower() in ("1", "true", "yes")
|
||||
ocr_workers: int = int(os.getenv("IDP_OCR_WORKERS", "64"))
|
||||
|
||||
Reference in New Issue
Block a user