Files
boys_streaming/start.sh
T
2026-05-03 16:48:18 +01:00

16 lines
372 B
Bash

#!/bin/bash
# Start FastAPI backend in the background
echo "Starting FastAPI backend..."
uvicorn app.api:app --host 0.0.0.0 --port 8003 &
# Start Streamlit frontend
echo "Starting Streamlit frontend..."
streamlit run app/main.py --server.port 8503 --server.address 0.0.0.0
# Wait for any process to exit
wait -n
# Exit with status of process that exited first
exit $?