None1145 commited on
Commit
f3d5429
·
verified ·
1 Parent(s): 36a1a00

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -56,6 +56,7 @@ def respond(
56
  messages.append(chatglm_cpp.ChatMessage(role="user", content=message))
57
 
58
  response = ""
 
59
 
60
  for chunk in pipeline.chat(messages, **generation_kwargs):
61
  response += chunk.content
 
56
  messages.append(chatglm_cpp.ChatMessage(role="user", content=message))
57
 
58
  response = ""
59
+ chunks = []
60
 
61
  for chunk in pipeline.chat(messages, **generation_kwargs):
62
  response += chunk.content