Spaces:
Runtime error
Runtime error
| # Start FastAPI in the background | |
| uvicorn main:app --host 0.0.0.0 --port 8000 & | |
| # Wait a few seconds for the API to initialize | |
| sleep 5 | |
| # Start Streamlit in the FOREGROUND (No '&' at the end) | |
| # This keeps the container running | |
| streamlit run app.py --server.port 7860 --server.address 0.0.0.0 |