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)