rahgadda commited on
Commit
a66a295
·
verified ·
1 Parent(s): 655be62

Initial Draft

Browse files
Files changed (1) hide show
  1. chat.py +3 -1
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
- gr.Button("Download", link="/file="+str(temp_file.name))
 
 
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>"))