MoritzLaurer HF staff commited on
Commit
fe6d4e0
1 Parent(s): 45123a0

fix token == None issue

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -39,7 +39,8 @@ def respond(
39
  ):
40
  token = message.choices[0].delta.content
41
 
42
- response += token
 
43
  yield response
44
 
45
  """
 
39
  ):
40
  token = message.choices[0].delta.content
41
 
42
+ if token:
43
+ response += token
44
  yield response
45
 
46
  """