Spaces:
Runtime error
Runtime error
clr 5
Browse files
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], [
|
| 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__":
|