Spaces:
Sleeping
Sleeping
Abdul Rafay commited on
Commit Β·
aedb7f1
1
Parent(s): a4ef98f
readme file added
Browse files123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102---title: Numeraemoji: π’colorFrom: indigocolorTo: purplesdk: dockerapp_file: main.pypinned: false---
# π’ Numera
### From Scribble to Signal.
Numera is a neural networkβpowered web app that recognizes handwritten digits (0β9). Draw a number on the canvas and let the model predict it in real time.
---
## π§ About the Model
- Built with **PyTorch**- Convolutional Neural Network (CNN)- Trained on the **MNIST dataset**- ~98% accuracy- CPU-optimized for fast inference
---
## βοΈ How It Works
1. User draws a digit on the canvas2. Image is converted to grayscale3. Image is inverted (to match MNIST format)4. Resized to 28Γ285. Passed through the CNN model6. Prediction + confidence score returned
---
## π Tech Stack
- **FastAPI** β Backend API- **Gradio** β Interactive frontend- **PyTorch** β Model inference- **Docker** β Deployment- Hosted on **Hugging Face Spaces**
---
## π Deployment
This Space uses the **Docker runtime**.
The container:- Installs dependencies- Loads `model.pt`- Runs `uvicorn main:app`- Serves the app on port 7860
---
## π Project Structure
.βββ main.py # FastAPI + Gradio appβββ model.py # CNN architectureβββ model.pt # Trained weights (Git LFS)βββ requirements.txtβββ Dockerfileβββ README.md
---
## π― Features
βοΈ Draw digits directly in browser βοΈ Real-time prediction βοΈ Confidence score display βοΈ Lightweight CPU deployment
---
## π¨βπ» Author
Developed by **Abdul Rafay** Computer Science student building AI-powered systems.
---
## π Future Improvements
- Probability distribution chart- Model versioning- GPU support- Improved preprocessing pipeline- CI/CD integration
---
β¨ Thank you for trying Numera!readme.mdAdded+102