Omnibus commited on
Commit
e4f6366
1 Parent(s): e51c397

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -67,7 +67,9 @@ def format_prompt_mixtral(message, history):
67
  prompt += f"[INST] {message} [/INST]"
68
  return prompt
69
 
70
- def format_prompt_choose(message, history, model_name, new_models):
 
 
71
  if "gemma" in new_models[model_name].lower() and "it" in new_models[model_name].lower():
72
  return format_prompt_gemma(message,history)
73
  if "mixtral" in new_models[model_name].lower():
 
67
  prompt += f"[INST] {message} [/INST]"
68
  return prompt
69
 
70
+ def format_prompt_choose(message, history, model_name, new_models=None):
71
+ if not new_models:
72
+ new_models=models
73
  if "gemma" in new_models[model_name].lower() and "it" in new_models[model_name].lower():
74
  return format_prompt_gemma(message,history)
75
  if "mixtral" in new_models[model_name].lower():