Files
Auto-GPT/scripts/data.py
Andres Caicedo eac5c1f6e6 Add documentation
2023-04-02 19:03:37 +02:00

12 lines
348 B
Python

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