File size: 1,662 Bytes
21c87da
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5ebeb73
21c87da
c115883
13ea8e1
21c87da
 
c115883
 
e03657f
b069f28
5ebeb73
21c87da
 
 
 
 
 
 
 
 
 
5ebeb73
 
1dc5fbd
 
 
 
 
 
 
 
 
 
 
5ebeb73
 
21c87da
 
 
5ebeb73
21c87da
 
 
 
 
 
 
 
 
 
 
 
 
 
5ebeb73
21c87da
 
381bbf4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
[project]
name = "htrflow-app"
version = "1.0.0"
description = "htrflow-app is developed at Riksarkivet's AI-lab as a poc frontend to showcase HTRflow"
readme = "README.md"
license = {file = "LICENSE"}
authors = [{email = "[email protected]"}]
keywords = ["htr", "HTRflow", "ocr", "htrflow-app"]
classifiers = [
    "Development Status :: 4 - Beta",
    "Intended Audience :: Developers",
    "Operating System :: OS Independent",
    "Programming Language :: Python :: 3.10",
    "Topic :: Software Development :: Libraries :: Python Modules",
    "Typing :: Typed",
]
requires-python = ">=3.10,<3.13"

dependencies = [
    "htrflow==0.2.0",
    "gradio>=5.11.0",
    "datasets>=3.2.0",
    "pandas>=2.2.3",
    "tqdm>=4.67.1",
    "pillow>=11.1.0",
    "gradio-modal>=0.0.4",
]

[project.urls]
Homepage = "https://huggingface.co/spaces/Riksarkivet/htr_demo"
Repository = "https://github.com/AI-Riksarkivet/htrflow-app"

[tool.uv]
dev-dependencies = [
    "pytest >=8.0.1",
    "python-dotenv >=1.0.1",
    "ruff >=0.6.2",
    "uv>=0.4.12",
]

# [project.optional-dependencies]
# openmmlab = [
#     "openmim==0.3.9",
#     "mmengine==0.7.4",
#     "mmcv==2.0.1",
#     "mmdet==3.0.0",
#     "mmocr==1.0.0"
# ]
# teklia = [
#     "pylaia==1.1.2"
# ]


[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[tool.hatch.metadata]
allow-direct-references = true  

[tool.hatch.build.targets.wheel]
packages = ["app"]

[tool.pytest.ini_options]
addopts = "-v"
pythonpath = "src"
testpaths = ["tests"]

[tool.ruff]
line-length = 119
target-version = "py310"

[tool.ruff.lint]
ignore = ["C901", "E741", "W605"]
select = ["C", "E", "F", "I", "W"]