Spaces:
Running on Zero
Running on Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -87,6 +87,12 @@ def generate(message, history):
|
|
| 87 |
"content": content,
|
| 88 |
}
|
| 89 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 90 |
|
| 91 |
inputs = tokenizer.apply_chat_template(
|
| 92 |
messages,
|
|
|
|
| 87 |
"content": content,
|
| 88 |
}
|
| 89 |
)
|
| 90 |
+
messages.append(
|
| 91 |
+
{
|
| 92 |
+
"role": "user",
|
| 93 |
+
"content": message,
|
| 94 |
+
}
|
| 95 |
+
)
|
| 96 |
|
| 97 |
inputs = tokenizer.apply_chat_template(
|
| 98 |
messages,
|