Spaces:
Sleeping
Sleeping
Download app.py from faseehsandhu/Digitalytics: direct link, hf CLI and curl.
- Browser
- Download file 509 Bytes
-
https://huggingface.co/spaces/faseehsandhu/Digitalytics/resolve/main/app.py
- Command line
-
hf download hf://spaces/faseehsandhu/Digitalytics/app.py
-
curl -L -o app.py https://huggingface.co/spaces/faseehsandhu/Digitalytics/resolve/main/app.py
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()) | |