Initial Draft
Browse files
chat.py
CHANGED
@@ -530,7 +530,9 @@ def excel_file_search(ui_product_dropdown, ui_excel_upload, ui_chatbot):
|
|
530 |
interactive=True
|
531 |
)
|
532 |
ui_chatbot.append((None, "File Processing Completed - "+str(temp_file.name)))
|
533 |
-
|
|
|
|
|
534 |
except Exception as e:
|
535 |
print('Exception '+str(e))
|
536 |
ui_chatbot.append((None,"<b style='color:red'>Exception "+str(e)+"</b>"))
|
|
|
530 |
interactive=True
|
531 |
)
|
532 |
ui_chatbot.append((None, "File Processing Completed - "+str(temp_file.name)))
|
533 |
+
|
534 |
+
if len(str(temp_file.name)) >0:
|
535 |
+
gr.Button("Download", link="/file="+str(temp_file.name))
|
536 |
except Exception as e:
|
537 |
print('Exception '+str(e))
|
538 |
ui_chatbot.append((None,"<b style='color:red'>Exception "+str(e)+"</b>"))
|