freddyaboulton HF Staff commited on
Commit
267eb29
·
verified ·
1 Parent(s): 92dceb8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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"] += output
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