AI-Reverse_Face_Search / startapplication.sh
Waseem-k's picture
Update startapplication.sh
ec8ed96 verified
Raw
History Blame Contribute Delete
467 Bytes
#!/bin/bash
# 1. Start the FastAPI Backend in the background (&)
echo "Starting FastAPI backend..."
uvicorn src.api:app --host 0.0.0.0 --port 8001 &
# 2. Wait a few seconds for the API to boot up
sleep 5
# 3. Start the Streamlit Frontend in the foreground
echo "Starting Streamlit frontend..."
streamlit run src/frontend_streamlit.py \
--server.port=8501 \
--server.address=0.0.0.0 \
--server.enableCORS=false \
--server.enableXsrfProtection=false