ChenyuRabbitLove commited on
Commit
8452d18
·
verified ·
1 Parent(s): 66cfc0d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -97,8 +97,10 @@ def respond(
97
  }
98
  )
99
  second_response = chat_completion_request(messages)
100
- print(second_response)
101
- return second_response
 
 
102
 
103
  """
104
  For information on how to customize the ChatInterface, peruse the gradio docs: https://www.gradio.app/docs/chatinterface
 
97
  }
98
  )
99
  second_response = chat_completion_request(messages)
100
+ messages.append({"role": "assistant", "content": second_response.choices[0].message})
101
+ return messages
102
+ messages.append({"role": "assistant", "content": response.choices[0].message})
103
+ return messages
104
 
105
  """
106
  For information on how to customize the ChatInterface, peruse the gradio docs: https://www.gradio.app/docs/chatinterface