Omnibus commited on
Commit
99e5af8
1 Parent(s): ea006a3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -55,10 +55,9 @@ def format_prompt_gemma(message, history):
55
  def format_prompt_mixtral(message, history):
56
  prompt = "<s>"
57
  if history:
58
-
59
- for user_prompt, bot_response in history:
60
- prompt += f"[INST] {user_prompt} [/INST]"
61
- prompt += f" {bot_response}</s> "
62
  prompt += f"[INST] {message} [/INST]"
63
  return prompt
64
  def format_prompt_choose(message, history, model_name):
 
55
  def format_prompt_mixtral(message, history):
56
  prompt = "<s>"
57
  if history:
58
+ for user_prompt, bot_response in history:
59
+ prompt += f"[INST] {user_prompt} [/INST]"
60
+ prompt += f" {bot_response}</s> "
 
61
  prompt += f"[INST] {message} [/INST]"
62
  return prompt
63
  def format_prompt_choose(message, history, model_name):