Cats-Classifier / README.md
shkumar156's picture
Update README.md
787eff6 verified
|
Raw History Blame Contribute Delete
1.49 kB

A newer version of the Gradio SDK is available: 6.32.0

Upgrade
metadata
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 and TensorFlow.
  • 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:

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

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