Reshmarb commited on
Commit
29beed8
·
1 Parent(s): 626c71b

file modified

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -156,7 +156,7 @@ def chatbot_ui():
156
  def handle_submit(user_query, image, history):
157
  logger.info("User submitted a query.")
158
  response, audio = customLLMBot(user_query, image, history)
159
- return response, audio, None,'', history # Clear the image after submission
160
 
161
  # Submit on pressing Enter key
162
  user_input.submit(
@@ -178,7 +178,6 @@ def chatbot_ui():
178
  inputs=[],
179
  outputs=[chatbot, user_input, uploaded_image, chat_history],
180
  )
181
-
182
 
183
  return demo
184
 
 
156
  def handle_submit(user_query, image, history):
157
  logger.info("User submitted a query.")
158
  response, audio = customLLMBot(user_query, image, history)
159
+ return response, audio, None,"",history # Clear the image after submission
160
 
161
  # Submit on pressing Enter key
162
  user_input.submit(
 
178
  inputs=[],
179
  outputs=[chatbot, user_input, uploaded_image, chat_history],
180
  )
 
181
 
182
  return demo
183