Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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():
|