--- 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://-.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 `-` with your actual Hugging Face Space URL.*