Xylor commited on
Commit
3f55027
·
verified ·
1 Parent(s): 1b2ecf4

Yielding content instead of message object in non-streaming

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -50,7 +50,7 @@ def respond(
50
  temperature=temperature,
51
  top_p=top_p,
52
  )
53
- yield completion.choices[0].message
54
 
55
  """
56
  For information on how to customize the ChatInterface, peruse the gradio docs: https://www.gradio.app/docs/chatinterface
 
50
  temperature=temperature,
51
  top_p=top_p,
52
  )
53
+ yield completion.choices[0].message.content
54
 
55
  """
56
  For information on how to customize the ChatInterface, peruse the gradio docs: https://www.gradio.app/docs/chatinterface