Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -168,7 +168,7 @@ with gr.Blocks(css=".gradio-container {background-color: Tomato}, footer {visibi
|
|
| 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], [msg_txt, chat_bot])
|
| 171 |
-
chat_bu.click(get_response, [msg_txt, chat_bot,doc_text_state, doc_emb_state], [
|
| 172 |
|
| 173 |
if __name__ == "__main__":
|
| 174 |
demo.queue().launch()
|
|
|
|
| 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], [msg_txt, chat_bot])
|
| 171 |
+
chat_bu.click(get_response, [msg_txt, chat_bot,doc_text_state, doc_emb_state], [chat_bot])
|
| 172 |
|
| 173 |
if __name__ == "__main__":
|
| 174 |
demo.queue().launch()
|