muryshev commited on
Commit
cdaa2fc
1 Parent(s): b5ca3b7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -34,7 +34,7 @@ def generate(
34
  output = ""
35
 
36
  for response in stream:
37
- yield response.token.text
38
 
39
  app = Flask(__name__)
40
 
 
34
  output = ""
35
 
36
  for response in stream:
37
+ yield response.token.text.encode('utf-8')
38
 
39
  app = Flask(__name__)
40