Spaces:
Running
Running
|
Download README.md from nahinfarhan/fruit-classifier: direct link, hf CLI and curl.
- Browser
- Download file 1.88 kB
-
https://huggingface.co/spaces/nahinfarhan/fruit-classifier/resolve/main/README.md
- Command line
-
hf download hf://spaces/nahinfarhan/fruit-classifier/README.md
-
curl -L -o README.md https://huggingface.co/spaces/nahinfarhan/fruit-classifier/resolve/main/README.md
1.88 kB
A newer version of the Streamlit SDK is available: 1.68.0
metadata
title: Fresh vs Rotten Fruit Classifier
emoji: π
colorFrom: green
colorTo: red
sdk: streamlit
sdk_version: 1.48.1
app_file: app_ui.py
pinned: false
π Fresh vs Rotten Fruit Classifier
An AI-powered web application that classifies fruit types and determines their freshness using a pre-trained ResNet152 model.
π― Features
- Fruit Classification: Identifies fruit types (apple, banana, orange, etc.)
- Freshness Detection: Determines if fruit is fresh or rotten
- Real-time Processing: Upload images for instant AI predictions
- User-friendly Interface: Clean Streamlit UI for easy interaction
π How to Use
- Upload Image: Click "Choose an image..." and select a fruit photo
- Classify: Click the "Classify" button to analyze your image
- View Results: See the predicted fruit type and freshness status
π€ Model Details
- Architecture: Multi-task ResNet152
- Input: 224x224 RGB images
- Outputs:
- Fruit classification (apple, banana, orange, mixed)
- Freshness probability (fresh vs rotten)
- Training: Trained on diverse fruit dataset with fresh/rotten labels
π Supported Fruits
- π Apple
- π Banana
- π Orange
- π Mixed fruits
π‘ Use Cases
- Food Quality Control: Assess fruit freshness in retail/storage
- Smart Agriculture: Monitor crop quality and harvest timing
- Food Safety: Identify potentially spoiled produce
- Educational: Learn about AI in food technology
π§ Technical Stack
- Framework: Streamlit
- AI Model: TensorFlow/Keras ResNet152
- Image Processing: PIL, NumPy
- Deployment: Hugging Face Spaces
π Example Results
Upload a fruit image and get:
- Fruit Type: "Apple" (95.2% confidence)
- Freshness: "Fresh" (12.3% rotten probability)
Try it now with your own fruit photos! ππ₯π