Update app.py
Browse files
app.py
CHANGED
|
@@ -97,8 +97,10 @@ def respond(
|
|
| 97 |
}
|
| 98 |
)
|
| 99 |
second_response = chat_completion_request(messages)
|
| 100 |
-
|
| 101 |
-
return
|
|
|
|
|
|
|
| 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
|