File size: 496 Bytes
0dd7c80
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
"""Spaces entry point — re-exports the Streamlit app from app/streamlit_app.py.

HF Spaces convention is `app.py` at the repo root. This file just delegates
so the app code stays in app/streamlit_app.py for local dev.
"""

import runpy
from pathlib import Path

# Make the package importable when this file is the Spaces entry point.
import sys
sys.path.insert(0, str(Path(__file__).parent / "src"))

runpy.run_path(str(Path(__file__).parent / "app" / "streamlit_app.py"), run_name="__main__")