muryshev commited on
Commit
b698cda
1 Parent(s): d619817

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -235,7 +235,7 @@ def generate_and_log_tokens(user_request, model, generator):
235
  log(user_request, response_tokens.decode("utf-8", errors="ignore"))
236
  response_tokens = bytearray()
237
  break
238
- response_tokens.append(token)
239
  yield token
240
 
241
  @app.route('/', methods=['POST'])
 
235
  log(user_request, response_tokens.decode("utf-8", errors="ignore"))
236
  response_tokens = bytearray()
237
  break
238
+ response_tokens.extend(token)
239
  yield token
240
 
241
  @app.route('/', methods=['POST'])