mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-11-15 01:05:42 +00:00
14 lines
441 B
Python
14 lines
441 B
Python
|
from flask import request, url_for
|
||
|
from app.models import TesseractOCRPipelineModel
|
||
|
|
||
|
|
||
|
def tesseract_ocr_pipeline_model_dlc():
|
||
|
topm_id = request.view_args['tesseract_ocr_pipeline_model_id']
|
||
|
topm = TesseractOCRPipelineModel.query.get(topm_id)
|
||
|
return [
|
||
|
{
|
||
|
'text': f'{topm.title} {topm.version}',
|
||
|
'url': url_for('.tesseract_ocr_pipeline_model', tesseract_ocr_pipeline_model_id=topm_id)
|
||
|
}
|
||
|
]
|