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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -61,9 +61,9 @@ def format_prompt_mixtral(message, history):
61
  prompt += f"[INST] {message} [/INST]"
62
  return prompt
63
  def format_prompt_choose(message, history, model_name):
64
- if "gemma" in model_name.lower():
65
  return format_prompt_gemma(message,history)
66
- if "mixtral" in model_name.lower():
67
  return format_prompt_mixtral(message,history)
68
  else:
69
  return format_prompt_mixtral(message,history)
 
61
  prompt += f"[INST] {message} [/INST]"
62
  return prompt
63
  def format_prompt_choose(message, history, model_name):
64
+ if "gemma" in models[model_name].lower():
65
  return format_prompt_gemma(message,history)
66
+ if "mixtral" in models[model_name].lower():
67
  return format_prompt_mixtral(message,history)
68
  else:
69
  return format_prompt_mixtral(message,history)