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