Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -114,7 +114,10 @@ def create_gradio_interface():
|
|
| 114 |
|
| 115 |
async def respond(message, history):
|
| 116 |
response, updated_history, search_results = await chat_service.chat(message, history)
|
| 117 |
-
|
|
|
|
|
|
|
|
|
|
| 118 |
|
| 119 |
submit_btn.click(
|
| 120 |
respond,
|
|
|
|
| 114 |
|
| 115 |
async def respond(message, history):
|
| 116 |
response, updated_history, search_results = await chat_service.chat(message, history)
|
| 117 |
+
# Convert updated_history to the required format
|
| 118 |
+
formatted_history = [(item['user_input'], item['response']) for item in updated_history]
|
| 119 |
+
return formatted_history, updated_history, search_results
|
| 120 |
+
|
| 121 |
|
| 122 |
submit_btn.click(
|
| 123 |
respond,
|