Skip to content

Solidx74/Number-Classifier-App

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Number Classifier App

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.

Features

  • 📊 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

Getting Started

Clone the repository

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

About

A simple Python Flask app that classifies handwritten digits using a PyTorch model. Includes a REST API for predictions and a minimal test script to validate functionality.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors