Skip to main content

Handwritten + image OCR.

Project description

formless

Handwritten + image OCR.

Usage

Hit the API:

curl -X POST -H "Content-Type: application/json" -d '{"image_url": "<image-url>"}' https://andrewhinh--formless-api-model-infer.modal.run

Or use the CLI:

uv run formless -i <image-url> [-v]

Soon:

  • Python bindings.
  • Frontend.

Development

Set Up

Set up the environment:

uv sync --all-extras --dev
uv run pre-commit install
modal setup

Repository Structure

.
├── api                 # API.
├── frontend            # frontend.
├── src/formless        # python bindings.
├── training            # training.

API

Run the API:

modal run api/app.py

Deploy:

modal deploy api/app.py

Frontend

Run the web app:

modal serve frontend/app.py

Deploy:

modal deploy frontend/app.py

PyPI

Run the package:

uv run formless -v

Build the package:

uvx --from build pyproject-build --installer uv

Upload the package:

uvx twine upload dist/*

Test the uploaded package:

uv run --with formless --no-project -- formless -v

Training

Run ETL on HF dataset:

modal run ft/etl.py

Train the model:

modal run ft/train_modal.py

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

formless-0.3.0.tar.gz (101.2 kB view hashes)

Uploaded Source

Built Distribution

formless-0.3.0-py3-none-any.whl (3.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page