File size: 1,492 Bytes
a200e89
 
 
 
 
 
787eff6
a200e89
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
787eff6
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
---
title: Cat Breed Classifier
emoji: 🐱
colorFrom: indigo
colorTo: pink
sdk: gradio
sdk_version: 5.36.2
app_file: app.py
pinned: false
---

# Cat Breed Classifier 🐱

This Hugging Face Space uses a deep learning model to classify cat breeds from images. Upload a photo of a cat, and the app will predict its breed!

## How It Works
- The app is built with [Gradio](https://gradio.app/) and [TensorFlow](https://www.tensorflow.org/).
- The model was trained to recognize 12 popular cat breeds.
- Just upload an image, and you'll get the predicted breed and confidence score.

## Supported Cat Breeds
- Abyssinian
- Bengal
- Birman
- Bombay
- British Shorthair
- Egyptian Mau
- Maine Coon
- Persian
- Ragdoll
- Russian Blue
- Siamese
- Sphynx

## Usage
1. Click the **Upload** button and select a cat image (JPG/PNG).
2. Wait a moment for the model to process the image.
3. View the predicted breed and confidence score.

## API
You can also use this Space as an API by sending a POST request to the `/run/predict` endpoint with an image file.

**Example using `requests` in Python:**
```python
import requests

url = "https://<your-username>-<space-name>.hf.space/run/predict"
files = {"data": ("cat.jpg", open("cat.jpg", "rb"), "image/jpeg")}
response = requests.post(url, files=files)
print(response.json())
```

## Credits
- Built with Gradio and TensorFlow
- Model trained by <your-name-or-team>

---

*Replace `<your-username>-<space-name>` with your actual Hugging Face Space URL.*