Chris4K commited on
Commit
5a08202
·
verified ·
1 Parent(s): f963a91

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
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
- return response, updated_history, search_results
 
 
 
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,