Spaces:
Sleeping
Sleeping
Create prompts.py
Browse files- prompts.py +5 -0
prompts.py
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import yaml
|
| 2 |
+
|
| 3 |
+
def load_prompts(path="prompts.yaml"):
|
| 4 |
+
with open(path, "r", encoding="utf-8") as f:
|
| 5 |
+
return yaml.safe_load(f)
|