File size: 974 Bytes
b346d74
 
800f572
 
 
 
 
 
b346d74
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
800f572
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
---
title: CIFAR-10 Image Classifier
emoji: ๐Ÿ–ผ๏ธ
colorFrom: blue
colorTo: green
sdk: streamlit
sdk_version: 1.52.0
app_file: app.py
pinned: false
---

# ๐Ÿš€ CIFAR-10 Image Classifier

This is a **Streamlit** app running a **TensorFlow/Keras CNN** trained on the CIFAR-10 dataset.  
Upload an image, and the model will predict one of 10 classes:

**airplane, automobile, bird, cat, deer, dog, frog, horse, ship, truck**

---

## ๐Ÿงฉ Features
- Upload images (PNG/JPG)
- Auto-resize and preprocess
- Predict top-3 classes with confidence
- Visualize all class probabilities in a bar chart
- Works directly on Hugging Face Spaces

---

## ๐Ÿ“ Files
- `app.py` โ€” The Streamlit app  
- `models/cifar10_cnn.keras` โ€” Trained model  
- `models/labels_map.json` โ€” Class labels  
- `requirements.txt` โ€” Dependencies  

---

## โšก How to run
This app is fully deployed on **Hugging Face Spaces**. Just push your repo with this structure, and it will build automatically.