| # Start the API in background | |
| python api_onnx.py & | |
| # Wait briefly to make sure API is up | |
| sleep 5 | |
| # Start the Gradio UI (on port 5685) | |
| python app.py | |
| # Start the API in background | |
| python api_onnx.py & | |
| # Wait briefly to make sure API is up | |
| sleep 5 | |
| # Start the Gradio UI (on port 5685) | |
| python app.py | |