mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2025-12-18 06:24:20 +01:00
11 lines
301 B
Python
11 lines
301 B
Python
def load_prompt():
|
|
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 ""
|