Manually add Caroline Minuscle Model to HTR service

This commit is contained in:
Patrick Jentsch 2022-12-22 13:57:37 +01:00
parent f5a1cf75dd
commit 55b7428045

View File

@ -125,6 +125,8 @@ def transkribus_htr_pipeline():
if r.status_code != 200: if r.status_code != 200:
abort(500) abort(500)
transkribus_htr_pipeline_models = r.json()['trpModelMetadata'] 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( form = CreateTranskribusHTRPipelineJobForm(
transkribus_htr_pipeline_models=transkribus_htr_pipeline_models, transkribus_htr_pipeline_models=transkribus_htr_pipeline_models,
prefix='create-job-form', prefix='create-job-form',