Spaces:
Running
Running
broadfield
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -61,7 +61,7 @@ def generate(prompt,history,mod=2,tok=4000,seed=1,role="ASSISTANT",data=None):
|
|
61 |
formatted_prompt = format_prompt(prompt, mod, system_prompt)
|
62 |
elif role == "PATHMAKER":
|
63 |
system_prompt = prompts.PATH_MAKER.replace("**CURRENT_OR_NONE**",str(data[4])).replace("**CODE_FILES**",json.dumps(data[0],indent=4)).replace("**HISTORY**",str(history))
|
64 |
-
formatted_prompt = format_prompt(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)
|
|
|
61 |
formatted_prompt = format_prompt(prompt, mod, system_prompt)
|
62 |
elif role == "PATHMAKER":
|
63 |
system_prompt = prompts.PATH_MAKER.replace("**CURRENT_OR_NONE**",str(data[4])).replace("**CODE_FILES**",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)
|