Update app.py
Browse files
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.
|
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'])
|