mirror of
https://github.com/MrSleeps/jellyfin-scene-search.git
synced 2026-11-17 07:21:28 +00:00
Configure local caption prompt file
This commit is contained in:
@@ -6,8 +6,6 @@ from pathlib import Path
|
||||
|
||||
from dotenv import load_dotenv
|
||||
|
||||
from .captioner import DEFAULT_CAPTION_PROMPT
|
||||
|
||||
load_dotenv()
|
||||
|
||||
|
||||
@@ -29,7 +27,9 @@ class Settings:
|
||||
)
|
||||
caption_timeout_seconds: int = int(os.getenv("CAPTION_TIMEOUT_SECONDS", "180"))
|
||||
caption_max_tokens: int = int(os.getenv("CAPTION_MAX_TOKENS", "120"))
|
||||
caption_prompt: str = os.getenv("CAPTION_PROMPT", DEFAULT_CAPTION_PROMPT)
|
||||
caption_prompt_file: Path = Path(
|
||||
os.getenv("CAPTION_PROMPT_FILE", "./data/caption_prompt.txt")
|
||||
).expanduser().resolve()
|
||||
|
||||
data_dir: Path = Path(os.getenv("DATA_DIR", "./data")).resolve()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user