# app.py - Entry point for Huggingface Spaces # This file forwards to the main Home.py file import streamlit as st import sys import os # Add the current directory to the path so that imports work correctly sys.path.append(os.path.dirname(__file__)) # Import the Home module and run it try: # Apply custom styling try: from .streamlit.custom import init as apply_custom_styling apply_custom_styling() except (ImportError, ModuleNotFoundError): pass # Import and run the Home.py module import Home except Exception as e: st.error(f"Failed to load application: {str(e)}") st.error("Please check that the application structure is correct and Home.py exists.")