Raiff1982 commited on
Commit
98a8ffb
·
verified ·
1 Parent(s): bdaf598

Create main.py

Browse files
Files changed (1) hide show
  1. main.py +9 -0
main.py ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ import logging
2
+ from final_codettes_chatbot import HuggingFaceChatbot
3
+
4
+ if __name__ == "__main__":
5
+ logging.basicConfig(level=logging.INFO, format="%(asctime)s - %(levelname)s - %(message)s")
6
+ try:
7
+ HuggingFaceChatbot().launch()
8
+ except Exception as e:
9
+ logging.exception("Startup failed: %s", e)