#!/bin/bash # Start FastAPI on port 8000 and Streamlit on port 7860 # Start FastAPI in background uvicorn app:app --host 0.0.0.0 --port 8000 & # Wait for FastAPI to start sleep 3 # Start Streamlit on HF Spaces port streamlit run dashboard.py \ --server.port 7860 \ --server.address 0.0.0.0 \ --server.headless true \ --server.enableCORS false \ --server.enableXsrfProtection false