MCPcopy Create free account
hub / github.com/Lightricks/ComfyUI-LTXVideo / _load_system_prompt

Function _load_system_prompt

gemma_encoder.py:28–36  ·  view source on GitHub ↗

Load system prompt from file at module level.

(filename: str)

Source from the content-addressed store, hash-verified

26
27
28def _load_system_prompt(filename: str) -> str:
29 """Load system prompt from file at module level."""
30 try:
31 prompt_path = Path(__file__).parent / "system_prompts" / filename
32 if prompt_path.exists():
33 return prompt_path.read_text(encoding="utf-8").strip()
34 except Exception as e:
35 logger.warning(f"Could not load {filename}: {e}")
36 return ""
37
38
39DEFAULT_T2V_SYSTEM_PROMPT = _load_system_prompt("gemma_t2v_system_prompt.txt")

Callers 1

gemma_encoder.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected