metadata
title: Animal Classification API
emoji: 🐾
colorFrom: blue
colorTo: green
sdk: docker
app_port: 7860
pinned: false
Animal Classification API
A FastAPI inference service for classifying images of animals (Cat, Dog, Panda).
Features
- FastAPI REST API with automatic documentation
- TensorFlow model for image classification
- Swagger UI at
/docsfor interactive testing - Supports JPG, PNG image uploads
Usage
- Open the Space URL
- Navigate to
/docsendpoint - Try the
POST /upload/imageendpoint - Upload an image of a Cat, Dog, or Panda
- Get instant classification results!
API Endpoints
POST /upload/image- Upload an image for classificationGET /docs- Interactive API documentationGET /redoc- Alternative API documentation
Model
Uses a CNN trained on animal images with 64x64 input resolution.