Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -7,7 +7,7 @@ client = InferenceClient("mistralai/Mixtral-8x7B-Instruct-v0.1")
|
|
| 7 |
def format_prompt(message, history, context):
|
| 8 |
prompt = " "
|
| 9 |
for user_prompt, bot_response in history:
|
| 10 |
-
prompt += f"[INST] {user_prompt} [/ASSISTANT]
|
| 11 |
prompt += f" {context} "
|
| 12 |
prompt += f"[INST] {message} [/INST]"
|
| 13 |
return prompt
|
|
|
|
| 7 |
def format_prompt(message, history, context):
|
| 8 |
prompt = " "
|
| 9 |
for user_prompt, bot_response in history:
|
| 10 |
+
prompt += f"[INST] {user_prompt} [/ASSISTANT]"
|
| 11 |
prompt += f" {context} "
|
| 12 |
prompt += f"[INST] {message} [/INST]"
|
| 13 |
return prompt
|