Files
Auto-GPT/scripts/data.py
Toran Bruce Richards 4c66cd6f4a Renames FOLDER to SRC_DIR
2023-04-04 10:00:40 +01:00

16 lines
370 B
Python

from pathlib import Path
SRC_DIR = Path(__file__).parent
def load_prompt():
try:
# Load the promt from data/prompt.txt
with open(FOLDER / "data/prompt.txt", "r") as prompt_file:
prompt = prompt_file.read()
return prompt
except FileNotFoundError:
print("Error: Prompt file not found", flush=True)
return ""