From 55b7428045ff8e4ad2bd2ef3e064979ed3e40624 Mon Sep 17 00:00:00 2001
From: Patrick Jentsch
Date: Thu, 22 Dec 2022 13:57:37 +0100
Subject: [PATCH] Manually add Caroline Minuscle Model to HTR service
---
app/services/routes.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/app/services/routes.py b/app/services/routes.py
index 24688c88..0fb4b168 100644
--- a/app/services/routes.py
+++ b/app/services/routes.py
@@ -125,6 +125,8 @@ def transkribus_htr_pipeline():
if r.status_code != 200:
abort(500)
transkribus_htr_pipeline_models = r.json()['trpModelMetadata']
+ transkribus_htr_pipeline_models.append({'modelId': 48513, 'name': 'Caroline Minuscle', 'language': 'lat', 'isoLanguages': ['lat']})
+ print(transkribus_htr_pipeline_models[len(transkribus_htr_pipeline_models)-1])
form = CreateTranskribusHTRPipelineJobForm(
transkribus_htr_pipeline_models=transkribus_htr_pipeline_models,
prefix='create-job-form',