Spaces:
Sleeping
Sleeping
metadata
title: Cat vs Dog Classifier πΆπ±
emoji: πΎ
colorFrom: gray
colorTo: red
sdk: docker
pinned: false
πΎ Cat vs Dog Classifier - FastAPI + PyTorch
This Space hosts a FastAPI-based image classification API that distinguishes between cats and dogs using a fine-tuned ResNet50 model.
π How It Works
- Accepts an uploaded image via a POST request.
- Processes the image using
albumentationsand a pre-trained PyTorch model. - Returns
"cat"or"dog"based on prediction confidence.
π§ͺ Try It Out
You can interact with the /predict-image endpoint using tools like:
curl- Postman
- Any frontend that supports
multipart/form-datafile uploads.
Example:
curl -X POST \
-F "file=@your_image.jpg" \
https://Klasta-testing_spaces.hf.space/predict-image