Create main.py
Browse files
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)
|