This package provides a REST API to serve the skin-ai mpox detection model. It's built using the oxapy web framework.
- Endpoint:
POST /api/v1/predict - Description: Receives an image and returns a prediction for
mpox. - Request:
multipart/form-datawith animagefield. - Response: A JSON object with
labelandconfidence.
Example (cURL)
curl -X POST http://localhost:8000/api/v1/predict \
-F "image=@/path/to/your/image.jpg"Example Response
{
"label": "mpox",
"confidence": 0.92
}To start the server, run the following command from the project root:
uv run python api/main.pyThe API will be available at http://localhost:8000.