mirror of
https://github.com/tcsenpai/pensieve.git
synced 2025-06-10 13:07:15 +00:00
feat: use concurrency of 1 by default
This commit is contained in:
parent
3a408f0be7
commit
f5aae87f40
@ -17,7 +17,7 @@ class VLMSettings(BaseModel):
|
|||||||
modelname: str = "moondream"
|
modelname: str = "moondream"
|
||||||
endpoint: str = "http://localhost:11434"
|
endpoint: str = "http://localhost:11434"
|
||||||
token: str = ""
|
token: str = ""
|
||||||
concurrency: int = 4
|
concurrency: int = 1
|
||||||
force_jpeg: bool = False
|
force_jpeg: bool = False
|
||||||
use_local: bool = True
|
use_local: bool = True
|
||||||
|
|
||||||
@ -26,7 +26,7 @@ class OCRSettings(BaseModel):
|
|||||||
enabled: bool = True
|
enabled: bool = True
|
||||||
endpoint: str = "http://localhost:5555/predict"
|
endpoint: str = "http://localhost:5555/predict"
|
||||||
token: str = ""
|
token: str = ""
|
||||||
concurrency: int = 4
|
concurrency: int = 1
|
||||||
use_local: bool = True
|
use_local: bool = True
|
||||||
use_gpu: bool = False
|
use_gpu: bool = False
|
||||||
force_jpeg: bool = False
|
force_jpeg: bool = False
|
||||||
@ -71,7 +71,7 @@ class Settings(BaseSettings):
|
|||||||
# Embedding settings
|
# Embedding settings
|
||||||
embedding: EmbeddingSettings = EmbeddingSettings()
|
embedding: EmbeddingSettings = EmbeddingSettings()
|
||||||
|
|
||||||
batchsize: int = 4
|
batchsize: int = 1
|
||||||
|
|
||||||
auth_username: str = "admin"
|
auth_username: str = "admin"
|
||||||
auth_password: SecretStr = SecretStr("changeme")
|
auth_password: SecretStr = SecretStr("changeme")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user