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

Initial Draft

Browse files
Files changed (1) hide show
  1. chat.py +2 -2
chat.py CHANGED
@@ -530,7 +530,7 @@ 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>"))
@@ -600,7 +600,7 @@ def main():
600
  except Exception as e:
601
  ui_chatbot.append((None,"<b style='color:red'>Exception Searching Excel "+str(e)+"</b>"))
602
 
603
- demo.launch(server_name="0.0.0.0",allowed_paths=["file/"])
604
 
605
  # -- Calling Main Function
606
  if __name__ == '__main__':
 
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>"))
 
600
  except Exception as e:
601
  ui_chatbot.append((None,"<b style='color:red'>Exception Searching Excel "+str(e)+"</b>"))
602
 
603
+ demo.launch(server_name="0.0.0.0",allowed_paths=["/tmp"])
604
 
605
  # -- Calling Main Function
606
  if __name__ == '__main__':