File size: 872 Bytes
40da4f8
d042a88
 
 
 
2749dce
 
40da4f8
 
 
d042a88
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
---
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 `/docs` for interactive testing
- Supports JPG, PNG image uploads

## Usage

1. Open the Space URL
2. Navigate to `/docs` endpoint
3. Try the `POST /upload/image` endpoint
4. Upload an image of a Cat, Dog, or Panda
5. Get instant classification results!

## API Endpoints

- `POST /upload/image` - Upload an image for classification
- `GET /docs` - Interactive API documentation
- `GET /redoc` - Alternative API documentation

## Model

Uses a CNN trained on animal images with 64x64 input resolution.