File tree Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -363,6 +363,23 @@ export const gliner = (model: ModelData): string[] => [
363
363
model = GLiNER.from_pretrained("${ model . id } ")` ,
364
364
] ;
365
365
366
+ export const htrflow = ( model : ModelData ) : string [ ] => [
367
+ `# CLI usage
368
+ # see docs: https://ai-riksarkivet.github.io/htrflow/latest/getting_started/quick_start.html
369
+ htrflow pipeline <path/to/pipeline.yaml> <path/to/image>` ,
370
+ `# Python usage
371
+ from htrflow.pipeline.pipeline import Pipeline
372
+ from htrflow.pipeline.steps import Task
373
+ from htrflow.models.framework.model import ModelClass
374
+
375
+ pipeline = Pipeline(
376
+ [
377
+ Task(
378
+ ModelClass, {"model": "${ model . id } "}, {}
379
+ ),
380
+ ])` ,
381
+ ] ;
382
+
366
383
export const keras = ( model : ModelData ) : string [ ] => [
367
384
`# Available backend options are: "jax", "torch", "tensorflow".
368
385
import os
Original file line number Diff line number Diff line change @@ -317,6 +317,13 @@ export const MODEL_LIBRARIES_UI_ELEMENTS = {
317
317
docsUrl : "https://hezarai.github.io/hezar" ,
318
318
countDownloads : `path:"model_config.yaml" OR path:"embedding/embedding_config.yaml"` ,
319
319
} ,
320
+ htrflow : {
321
+ prettyLabel : "HTRflow" ,
322
+ repoName : "HTRflow" ,
323
+ repoUrl : "https://github.com/AI-Riksarkivet/htrflow" ,
324
+ docsUrl : "https://ai-riksarkivet.github.io/htrflow" ,
325
+ snippets : snippets . htrflow ,
326
+ } ,
320
327
"hunyuan-dit" : {
321
328
prettyLabel : "HunyuanDiT" ,
322
329
repoName : "HunyuanDiT" ,
You can’t perform that action at this time.
0 commit comments