TTV / start.sh
MahmoudElsamadony's picture
FIX numpy not installed yet
a8fef8c
raw
history blame contribute delete
391 Bytes
#!/bin/bash
# Unset PORT so apps don't get confused by HF's default 7860
# We want Nginx to own port 7860, not Streamlit or Uvicorn
unset PORT
# Start FastAPI in the background
uvicorn api_server:app --host 0.0.0.0 --port 8000 &
# Start Streamlit in the background
streamlit run app.py --server.port 8501 --server.address 0.0.0.0 &
# Start Nginx in the foreground
nginx -g 'daemon off;'