Spaces:
Running
Running
broadfield
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -63,7 +63,7 @@ def generate(prompt,history,mod=2,tok=4000,seed=1,role="ASSISTANT",data=None):
|
|
63 |
system_prompt = prompts.PATH_MAKER.replace("**CURRENT_OR_NONE**",str(data[4])).replace("**PROMPT**",json.dumps(data[0],indent=4)).replace("**HISTORY**",str(history))
|
64 |
formatted_prompt = format_prompt(prompt, mod, system_prompt)
|
65 |
elif role == "CREATE_FILE":
|
66 |
-
system_prompt = prompts.CREATE_FILE.replace("**FILENAME**",str(data[4]))
|
67 |
formatted_prompt = format_prompt(prompt, mod, system_prompt)
|
68 |
elif role == "SEARCH":
|
69 |
system_prompt = prompts.SEARCH.replace("**DATA**",data)
|
|
|
63 |
system_prompt = prompts.PATH_MAKER.replace("**CURRENT_OR_NONE**",str(data[4])).replace("**PROMPT**",json.dumps(data[0],indent=4)).replace("**HISTORY**",str(history))
|
64 |
formatted_prompt = format_prompt(prompt, mod, system_prompt)
|
65 |
elif role == "CREATE_FILE":
|
66 |
+
system_prompt = prompts.CREATE_FILE.replace("**TIMELINE**",data[4]).replace("**FILENAME**",str(data[4]))
|
67 |
formatted_prompt = format_prompt(prompt, mod, system_prompt)
|
68 |
elif role == "SEARCH":
|
69 |
system_prompt = prompts.SEARCH.replace("**DATA**",data)
|