Skip to main content

Handwritten + image OCR.

Project description

formless

Handwritten + image OCR.

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.

Development

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 -vv

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.1.0.tar.gz (101.1 kB view hashes)

Uploaded Source

Built Distribution

formless-0.1.0-py3-none-any.whl (3.7 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