[1bdb11]: / aitrika / utils / prompt_loader.py

Download this file

13 lines (10 with data), 250 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
def load_prompt(filename: str) -> str:
"""
Load the prompt from .tmpl files.
Args:
filename (str): Prompt from .tmpl file
Returns:
str: Prompt
"""
with open(filename, "r") as file:
return file.read()