chrisociepa commited on
Commit
421760f
1 Parent(s): 219e64a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -75,7 +75,7 @@ def predict(message, history, system_prompt, temperature, max_new_tokens, top_k,
75
  if system_prompt:
76
  prompt_builder.append(f"<<SYS>>\n{system_prompt}\n<</SYS>>\n\n")
77
  for human, assistant in history:
78
- prompt_builder.append(f"{human} [/INST] {assistant}</s>[INST] "))
79
  prompt_builder.append(f"{message} [/INST]")
80
  instruction = ''.join(prompt_builder)
81
  else:
 
75
  if system_prompt:
76
  prompt_builder.append(f"<<SYS>>\n{system_prompt}\n<</SYS>>\n\n")
77
  for human, assistant in history:
78
+ prompt_builder.append(f"{human} [/INST] {assistant}</s>[INST] ")
79
  prompt_builder.append(f"{message} [/INST]")
80
  instruction = ''.join(prompt_builder)
81
  else: