Raghav001 commited on
Commit
b267cca
·
1 Parent(s): fb0e74d
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -167,7 +167,7 @@ with gr.Blocks(css=".gradio-container {background-color: Tomato}, footer {visibi
167
 
168
  file.change(up_file, [file], [txt, doc_bu, md]) #hiding the text
169
  doc_bu.click(doc_emb, [txt], [doc_text_state, doc_emb_state, msg_txt, chat_bu, md, chat_bot])
170
- msg_txt.submit(get_response, [msg_txt, chat_bot,doc_text_state, doc_emb_state], [gr.update(value=""), chat_bot])
171
  chat_bu.click(lambda: None, None, chat_bot, queue=False)
172
 
173
  if __name__ == "__main__":
 
167
 
168
  file.change(up_file, [file], [txt, doc_bu, md]) #hiding the text
169
  doc_bu.click(doc_emb, [txt], [doc_text_state, doc_emb_state, msg_txt, chat_bu, md, chat_bot])
170
+ msg_txt.submit(get_response, [msg_txt, chat_bot,doc_text_state, doc_emb_state], [chat_bot])
171
  chat_bu.click(lambda: None, None, chat_bot, queue=False)
172
 
173
  if __name__ == "__main__":