Update app.py
Browse files
app.py
CHANGED
@@ -216,7 +216,7 @@ def generate(data: WebRTCData, history: list[dict], system_prompt: str = "", max
|
|
216 |
yield history
|
217 |
new_message = {"role": "assistant", "content": ""}
|
218 |
for output in _generate(message, history, system_prompt, max_new_tokens):
|
219 |
-
new_message["content"]
|
220 |
yield AdditionalOutputs(history + [new_message])
|
221 |
|
222 |
|
|
|
216 |
yield history
|
217 |
new_message = {"role": "assistant", "content": ""}
|
218 |
for output in _generate(message, history, system_prompt, max_new_tokens):
|
219 |
+
new_message["content"] = output
|
220 |
yield AdditionalOutputs(history + [new_message])
|
221 |
|
222 |
|