1 2 3 4 5 6 7 8 9 10
| /MLOps-Breast-Cancer/FastAPI$ docker compose up -d /MLOps-Breast-Cancer/FastAPI$ docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES acd6af155bb2 fastapi-api-with-model "uvicorn app:app --h…" 8 seconds ago Up 7 seconds 0.0.0.0:8000->8000/tcp api-with-model
/MLOps-Breast-Cancer$ curl -X POST http://localhost:8000/predict -H "Content-Type: application/json" -d '{"feature_a": 22.27, "feature_b": 19.67, "feature_c": 152.8, "feature_d": 1509.0, "feature_e": 0.1326, "feature_f": 0.2768, "feature_g": 0.4264, "feature_h": 0.1823, "feature_i": 0.2556, "feature_j": 0.07039, "feature_k": 1.215, "feature_l": 1.545, "feature_m": 10.05, "feature_n": 170.0, "feature_o": 0.006515, "feature_p": 0.08668, "feature_q": 0.104, "feature_r": 0.0248, "feature_s": 0.03112, "feature_t": 0.005037, "feature_u": 28.4, "feature_v": 28.01, "feature_w": 206.8, "feature_x": 2360.0, "feature_y": 0.1701, "feature_z": 0.6997, "feature_aa": 0.9608, "feature_bb": 0.291, "feature_cc": 0.4055, "feature_dd": 0.09789}' {"target":0}%
/MLOps-Breast-Cancer$ curl -X POST http://localhost:8000/predict -H "Content-Type: application/json" -d '{"feature_a": 11.14, "feature_b": 14.07, "feature_c": 71.24, "feature_d": 384.6, "feature_e": 0.07274, "feature_f": 0.06064, "feature_g": 0.04505, "feature_h": 0.01471, "feature_i": 0.169, "feature_j": 0.06083, "feature_k": 0.4222, "feature_l": 0.8092, "feature_m": 3.33, "feature_n": 28.84, "feature_o": 0.005541, "feature_p": 0.03387, "feature_q": 0.04505, "feature_r": 0.01471, "feature_s": 0.03102, "feature_t": 0.004831, "feature_u": 12.12, "feature_v": 15.82, "feature_w": 79.62, "feature_x": 453.5, "feature_y": 0.08864, "feature_z": 0.1256, "feature_aa": 0.1201, "feature_bb": 0.03922, "feature_cc": 0.2576, "feature_dd": 0.07018}' {"target":1}%
|