A newer version of the Gradio SDK is available: 6.13.0
metadata
title: DogLover
emoji: π
colorFrom: purple
colorTo: green
sdk: gradio
sdk_version: 5.38.0
app_file: app.py
pinned: false
short_description: A dog loving space
πΆ Dog Breed Classifier (Gradio + Hugging Face)
This web app uses a powerful transformer-based model from Hugging Face to classify dog breeds from uploaded images.
π Model
- Name: prithivMLmods/Dog-Breed-120
- Base architecture: SigLIP (Vision Transformer)
- Classes: 120 dog breeds
π Features
- Built with Gradio for easy web interaction
- Powered by Transformers + PyTorch
- Can run on Hugging Face Spaces with no backend setup
π File Structure
dog-breed-app/
βββ app.py # Main app file
βββ requirements.txt # Python dependencies
βββ README.md # This file
π§ͺ Local Setup
# Create and activate environment (optional)
conda create -n dog-breed python=3.10 -y
conda activate dog-breed
# Install dependencies
pip install -r requirements.txt
# Run the app
python app.py
π Deploy to Hugging Face Spaces
- Go to https://huggingface.co/spaces
- Create a new Space (select Gradio as SDK)
- Upload
app.pyandrequirements.txt - Your app will be live at:
https://huggingface.co/spaces/your-username/your-app
β¨ Example Use
And get a result like:
golden_retriever (98.4%)
Enjoy building! πΎ
