Spaces:
Build error
Build error
| # 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;' | |