--- 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 ```bash # 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 1. Go to [https://huggingface.co/spaces](https://huggingface.co/spaces) 2. Create a new Space (select **Gradio** as SDK) 3. Upload `app.py` and `requirements.txt` 4. Your app will be live at: `https://huggingface.co/spaces/your-username/your-app` ## โœจ Example Use Upload a photo like this: ![example](https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/spaces/dog-example.jpg) And get a result like: ``` golden_retriever (98.4%) ``` Enjoy building! ๐Ÿพ