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