Spaces:
Sleeping
Sleeping
File size: 389 Bytes
42ae0c5 |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
import yaml
def load_prompts():
"""Load prompts.yaml and contentprompts.yml."""
with open("config/prompts.yaml", 'r') as stream:
prompt_templates = yaml.safe_load(stream)
with open("config/contentprompts.yml", 'r') as stream:
content_prompts = yaml.safe_load(stream)
combined_prompts = {**prompt_templates, **content_prompts}
return combined_prompts
|