支持局域网 GPU OCR 服务,配置方式类似 Ollama。
This commit is contained in:
@@ -25,6 +25,9 @@ class Settings(BaseSettings):
|
||||
OCR_MAX_SIDE: int = 1280
|
||||
UPLOAD_MAX_SIDE: int = 2048
|
||||
OCR_WARMUP: bool = True
|
||||
OCR_SERVICE_URL: str = ""
|
||||
OCR_API_KEY: str = ""
|
||||
OCR_USE_GPU: bool = False
|
||||
|
||||
class Config:
|
||||
env_file = ".env"
|
||||
|
||||
Reference in New Issue
Block a user