Spaces:
Sleeping

Digitalytics / app.py
faseehsandhu's picture
Add Dockerfile for Docker SDK deployment
fd01938
Raw History Blame Contribute Delete
509 Bytes
"""
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())