add motion layer
This commit is contained in:
1 parent
0a8e4cdbe5
commit
65504585b6
12 files changed
+401
-5
No files matched your search
@@ -1,3 +1,4 @@
|
||||
import json
|
||||
from pathlib import Path
|
||||
|
||||
RAW_PROMPT_DIR = Path(__file__).resolve().parent.parent / "raw_prompt"
|
||||
@@ -5,3 +6,7 @@ RAW_PROMPT_DIR = Path(__file__).resolve().parent.parent / "raw_prompt"
|
||||
|
||||
def load_prompt(name: str) -> str:
|
||||
return (RAW_PROMPT_DIR / f"{name}.txt").read_text(encoding="utf-8")
|
||||
|
||||
|
||||
def load_prompt_json(name: str) -> dict:
|
||||
return json.loads((RAW_PROMPT_DIR / f"{name}.json").read_text(encoding="utf-8"))
|
||||
Reference in new issue
Block a user