POC2PROD / start.sh
maxcasado's picture
Create start.sh
9d1f825 verified
raw
history blame contribute delete
252 Bytes
#!/usr/bin/env bash
set -e
# Lancer FastAPI en arrière-plan
uvicorn api:app --host 0.0.0.0 --port 8000 &
# Lancer Streamlit (port imposé par Hugging Face = $PORT, souvent 7860)
streamlit run frontend.py --server.port $PORT --server.address 0.0.0.0