Spaces:
Runtime error
Runtime error
|
Download README.md from shkumar156/Cats-Classifier: direct link, hf CLI and curl.
- Browser
- Download file 1.49 kB
-
https://huggingface.co/spaces/shkumar156/Cats-Classifier/resolve/main/README.md
- Command line
-
hf download hf://spaces/shkumar156/Cats-Classifier/README.md
-
curl -L -o README.md https://huggingface.co/spaces/shkumar156/Cats-Classifier/resolve/main/README.md
1.49 kB
A newer version of the Gradio SDK is available: 6.32.0
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
- Click the Upload button and select a cat image (JPG/PNG).
- Wait a moment for the model to process the image.
- 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.