KarthickAdopleAI commited on
Commit
b4fda70
1 Parent(s): 952e994

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -274,7 +274,7 @@ class LangChain_Document_QA:
274
  txt_msg = txt.submit(self._add_text, [chatbot, txt], [chatbot, txt]).then(
275
  self._suggested_answer, [chatbot,txt],chatbot
276
  )
277
- txt_msg.then(lambda: gr.update(interactive=True), None, [txt])
278
  # txt.submit(self._suggested_answer, [chatbot,txt],chatbot)
279
  button.click(self._agent_text, [chatbot,txt3], chatbot)
280
  end_btn.click(self._display_history, [], txt4)
 
274
  txt_msg = txt.submit(self._add_text, [chatbot, txt], [chatbot, txt]).then(
275
  self._suggested_answer, [chatbot,txt],chatbot
276
  )
277
+ txt_msg.then(lambda: gr.Textbox(interactive=True), None, [txt], queue=False)
278
  # txt.submit(self._suggested_answer, [chatbot,txt],chatbot)
279
  button.click(self._agent_text, [chatbot,txt3], chatbot)
280
  end_btn.click(self._display_history, [], txt4)