Spaces:
Running on Zero
Running on Zero
app.py: the TrOCR line within 120 characters
Browse files
app.py
CHANGED
|
@@ -37,7 +37,8 @@ from jev_render import render_text, renderer_version
|
|
| 37 |
READER = "Gabriel/diffu-minicpm-ocr-htr"
|
| 38 |
DRAFT = "Gabriel/diffu-minicpm-ocr-htr-dspark"
|
| 39 |
JEV = "Gabriel/diffu-minicpm-ocr-htr-jev"
|
| 40 |
-
|
|
|
|
| 41 |
HERE = Path(__file__).parent
|
| 42 |
FONT = HERE / "DejaVuSans.ttf"
|
| 43 |
EXAMPLES: list[dict[str, Any]] = json.loads((HERE / "examples" / "examples.json").read_text(encoding="utf-8"))
|
|
|
|
| 37 |
READER = "Gabriel/diffu-minicpm-ocr-htr"
|
| 38 |
DRAFT = "Gabriel/diffu-minicpm-ocr-htr-dspark"
|
| 39 |
JEV = "Gabriel/diffu-minicpm-ocr-htr-jev"
|
| 40 |
+
# a private copy of Riksarkivet's Swedish Lion Libre 2026 (large, character-based), not yet on the Hub
|
| 41 |
+
TROCR = os.environ.get("TROCR_REPO", "Gabriel/swedish-lion-trocr-large-handwritten-char")
|
| 42 |
HERE = Path(__file__).parent
|
| 43 |
FONT = HERE / "DejaVuSans.ttf"
|
| 44 |
EXAMPLES: list[dict[str, Any]] = json.loads((HERE / "examples" / "examples.json").read_text(encoding="utf-8"))
|