vpcom commited on
Commit
50f1d7b
·
1 Parent(s): 81301d6

fix: response is str already

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -58,7 +58,7 @@ def generate(
58
  output = ""
59
 
60
  for response in stream:
61
- output += response.token.text
62
 
63
  for stop_str in STOP_SEQUENCES:
64
  if output.endswith(stop_str):
 
58
  output = ""
59
 
60
  for response in stream:
61
+ output += response
62
 
63
  for stop_str in STOP_SEQUENCES:
64
  if output.endswith(stop_str):