Spaces:
Sleeping
Sleeping
File size: 717 Bytes
57d91e6 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# 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.") |