broadfield commited on
Commit
fe7fe44
·
verified ·
1 Parent(s): fa37ce9

Update app.py

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