A simple Python web application that classifies handwritten digits (0–9) using a trained PyTorch model. Built with Flask, it provides a REST API endpoint for predictions.
- 📊 Handwritten digit classification with PyTorch
- 🚀 Flask API endpoint for serving predictions
- 🧪 Local test script (
test/test.py) to quickly verify functionality - 📦 Ready-to-use requirements
git clone https://github.com/Solidx74/Number-Classifier-App.git
cd Number-Classifier-App
Setup a virtual environment
python -m venv .venv
.venv\Scripts\activate
Install dependencies
pip install -r requirements.txt
Run the Flask server
# Set the Flask app environment variable
set FLASK_APP=app.py # Windows
export FLASK_APP=app.py # Linux/macOS
# Run the server
flask run
The server will start at http://127.0.0.1:5000/
You can send requests to your API or test with test/test.py
Run the test script
python test/test.py