Spaces:
Runtime error
Runtime error
File size: 607 Bytes
98a8ffb 5958e3a 98a8ffb |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
import logging
import subprocess
import sys
subprocess.check_call([sys.executable, "-m", "pip", "install", "--upgrade",
"diffusers==0.25.0",
"huggingface_hub==0.20.3",
"transformers==4.37.2",
"torch>=2.1.0"])
from final_codettes_chatbot import HuggingFaceChatbot
if __name__ == "__main__":
logging.basicConfig(level=logging.INFO, format="%(asctime)s - %(levelname)s - %(message)s")
try:
HuggingFaceChatbot().launch()
except Exception as e:
logging.exception("Startup failed: %s", e) |