Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -9,7 +9,7 @@ client = InferenceClient("mistralai/Mixtral-8x7B-Instruct-v0.1")
|
|
| 9 |
|
| 10 |
def format_prompt(message, history):
|
| 11 |
prompt = "<s>"
|
| 12 |
-
if not history==
|
| 13 |
for user_prompt, bot_response in history:
|
| 14 |
prompt += f"[INST] {user_prompt} [/INST]"
|
| 15 |
prompt += f" {bot_response}</s> "
|
|
|
|
| 9 |
|
| 10 |
def format_prompt(message, history):
|
| 11 |
prompt = "<s>"
|
| 12 |
+
if not history==("",""):
|
| 13 |
for user_prompt, bot_response in history:
|
| 14 |
prompt += f"[INST] {user_prompt} [/INST]"
|
| 15 |
prompt += f" {bot_response}</s> "
|