File size: 748 Bytes
8d4dc0c 1809adb | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | #!/usr/bin/env python3
"""
Entrypoint script that downloads assets and starts Streamlit.
"""
import sys
import subprocess
def main():
# Download assets first
print("Downloading assets...")
try:
from app.scripts.download_assets import main as download_main
download_main()
except Exception as e:
print(f"Warning: Asset download failed: {e}")
print("Continuing anyway...")
# Start Streamlit (this replaces the Python process)
print("Starting Streamlit...")
sys.exit(subprocess.run([
"streamlit", "run",
"app/main.py",
"--server.port=8501",
"--server.address=0.0.0.0"
]).returncode)
if __name__ == "__main__":
main() |