An open API service indexing awesome lists of open source software.

https://github.com/ankitsharma-tech/digit-recognize

A machine learning model for digit recognition.
https://github.com/ankitsharma-tech/digit-recognize

cnn-tensorflow tensorflow

Last synced: 8 months ago
JSON representation

A machine learning model for digit recognition.

Awesome Lists containing this project

README

          

# πŸ–ŠοΈ Digit Recognizer Web App

πŸ”— **Live Demo:** [digit-recognize.onrender.com](https://digit-recognize.onrender.com)

![Demo GIF](DEMO.gif)

A **Flask-based web application** that serves a **machine learning model** for **digit recognition**.
Configured for **production deployment** on **Render** with **Gunicorn**.

---

## βš™οΈ Technologies

- **Backend:** Flask
- **Machine Learning:** TensorFlow
- **WSGI Server:** Gunicorn
- **Database Connector:** Psycopg2
- **Core Libraries:** NumPy, Matplotlib

---

## πŸ“‚ Project Structure

```
digit_recognize/
β”œβ”€β”€ app.py # Main Flask app
β”œβ”€β”€ requirements.txt # pip dependencies
β”œβ”€β”€ render.yaml # Render deployment config
β”œβ”€β”€ environment.yml # (Optional) Conda env file
β”œβ”€β”€ run.sh # Local dev setup script
└── README.md # Project documentation
```

---

## πŸš€ Running Locally

This project uses **uv** (fast Python installer), but works with any virtual environment.

1. **Clone the repository**

```bash
git clone https://github.com/ankitsharma-tech/Digit-Recognize.git
cd Digit-Recognize
```

2. **Create & activate a virtual environment**

```bash
# For Python 3.8
python3.8 -m venv .venv
source .venv/bin/activate
```

3. **Install dependencies**

```bash
pip install -r requirements.txt
```

4. **Start the app**

```bash
python app.py
```

App will be available at πŸ‘‰ `http://0.0.0.0:5000`

---

## ☁️ Deployment on Render

This app is **deployment-ready** with `render.yaml`.

1. Push code to GitHub / GitLab / Bitbucket
2. In **Render Dashboard** β†’ click **β€œNew +” β†’ β€œWeb Service”**
3. Connect your repo
4. Render auto-detects `render.yaml` and applies:

- **Python:** `3.8.10`
- **Build Command:** `pip install -r requirements.txt`
- **Start Command:** `gunicorn app:app`

5. Click **β€œCreate Web Service”** β†’ live URL provided on success πŸš€

---