File size: 2,452 Bytes
d89c064
0029675
11e46e5
 
 
 
 
 
d89c064
0029675
11e46e5
d89c064
 
11e46e5
378dbdf
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6750932
 
 
 
378dbdf
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
---
title: Garbage Classifier Ui
emoji: πŸ‘
colorFrom: blue
colorTo: blue
sdk: gradio
sdk_version: 5.34.2
app_file: app.py
pinned: false
license: mit
short_description: Garbage Classifier UI
---

Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference

# 🧠 Garbage Classifier UI

A real-world deep learning application that classifies garbage images into categories like **plastic**, **metal**, **cardboard**, etc.

This app uses a **custom-trained CNN model** to demonstrate computer vision for sustainability-related use cases. Powered by **TensorFlow** and deployed with **Streamlit** on Hugging Face Spaces.

πŸ”— **Live App**: [Click to open πŸš€](https://huggingface.co/spaces/sykamraju/garbage-classifier-ui)

πŸ”— **GitHub Repo**: [SykamRaju/Garbage-Classifier](https://github.com/SykamRaju/Garbage-Classifier)

---

## πŸ–ΌοΈ How it works

1. Upload an image of waste material (e.g. bottle, paper, can).
2. The backend model predicts the category.
3. The prediction and confidence score are displayed instantly.

---

## πŸ“¦ Tech Stack

- **Model**: TensorFlow (CNN trained on Garbage Classification dataset)
- **Frontend**: Streamlit
- **Deployment**: Hugging Face Spaces
- **Language**: Python

---

## πŸ“ Project Structure

.
β”œβ”€β”€ model/ # Saved Keras model
β”œβ”€β”€ src/
β”‚ └── app.py # Streamlit frontend app
β”œβ”€β”€ utils.py # Helper functions
β”œβ”€β”€ requirements.txt # Python dependencies
└── README.md # You're reading this πŸ™‚

yaml
Copy
Edit

---

## πŸ§ͺ Example Predictions

| Image                                                                                           | Predicted Class |
| ----------------------------------------------------------------------------------------------- | --------------- |
| ![Plastic](https://github.com/SykamRaju/Garbage-Classifier/raw/main/samples/plastic_sample.jpg) | `Plastic`       |
| ![Metal](https://github.com/SykamRaju/Garbage-Classifier/raw/main/samples/metal_sample.jpg)     | `Metal`         |

---

## πŸ™‹β€β™‚οΈ About Me

Hi, I'm **Raju Sykam** β€” a full-stack developer and AI enthusiast with 20+ years of software experience.  
I'm currently building a suite of AI projects in Python to showcase my skills.  
πŸ”­ I also run [FreeAstrologyAPI.com](https://freeastrologyapi.com) and love math, astronomy, and stargazing!

---

## πŸ“œ License

This project is licensed under the MIT License.

---