seawolf2357 commited on
Commit
b6039d0
·
verified ·
1 Parent(s): 48c525a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -37,10 +37,13 @@ def respond(
37
  top_p=top_p,
38
  ):
39
  token = message.choices[0].delta.content
40
-
41
- response += token
42
  yield response
43
 
 
 
 
44
  """
45
  For information on how to customize the ChatInterface, peruse the gradio docs: https://www.gradio.app/docs/chatinterface
46
  """
 
37
  top_p=top_p,
38
  ):
39
  token = message.choices[0].delta.content
40
+ if token is not None:
41
+ response += token
42
  yield response
43
 
44
+
45
+
46
+
47
  """
48
  For information on how to customize the ChatInterface, peruse the gradio docs: https://www.gradio.app/docs/chatinterface
49
  """