Spaces:
Runtime error
Runtime error
Karthikeyan
commited on
Commit
•
d30fc5a
1
Parent(s):
7d46259
Update app.py
Browse files
app.py
CHANGED
@@ -264,9 +264,8 @@ class LangChain_Document_QA:
|
|
264 |
|
265 |
|
266 |
txt_msg = txt.submit(self._add_text, [chatbot, txt], [chatbot, txt]).then(
|
267 |
-
self._suggested_answer, [chatbot,txt],chatbot
|
268 |
-
|
269 |
-
txt_msg.then(lambda: gr.Textbox(interactive=True), None, [txt], queue=False)
|
270 |
# txt.submit(self._suggested_answer, [chatbot,txt],chatbot)
|
271 |
# button.click(self._agent_text, [chatbot,txt3], chatbot)
|
272 |
end_btn.click(self._display_history, [], txt4)
|
|
|
264 |
|
265 |
|
266 |
txt_msg = txt.submit(self._add_text, [chatbot, txt], [chatbot, txt]).then(
|
267 |
+
self._suggested_answer, [chatbot,txt],chatbot)
|
268 |
+
txt_msg.then(lambda: gr.update(interactive=True), None, [txt])
|
|
|
269 |
# txt.submit(self._suggested_answer, [chatbot,txt],chatbot)
|
270 |
# button.click(self._agent_text, [chatbot,txt3], chatbot)
|
271 |
end_btn.click(self._display_history, [], txt4)
|