""" Main entry point for Hugging Face Spaces deployment. """ import sys from pathlib import Path # Add src directory to path src_path = Path(__file__).parent / "src" sys.path.insert(0, str(src_path)) try: # Import the main module import app as src_app # Run the main function src_app.main() except Exception as e: import streamlit as st st.error(f"Error loading application: {e}") st.code(f"{type(e).__name__}: {e}") import traceback st.code(traceback.format_exc())