broadfield commited on
Commit
78e91a7
·
verified ·
1 Parent(s): cf1e174

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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, history, 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)
 
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)