johnlockejrr commited on
Commit
cd9b948
·
verified ·
1 Parent(s): c121a38

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -16,7 +16,7 @@ IMAGE_ID_PATTERN = r"(?P<image_id>[-a-z0-9]{36})"
16
  CONFIDENCE_PATTERN = r"(?P<confidence>[0-9.]+)" # For line
17
  TEXT_PATTERN = r"\s*(?P<text>.*)\s*"
18
  LINE_PREDICTION = re.compile(rf"{IMAGE_ID_PATTERN} {CONFIDENCE_PATTERN} {TEXT_PATTERN}")
19
- models_name = ["johnlockejrr/pylaia-samaritan_v1"]
20
  MODELS = {}
21
  DEFAULT_HEIGHT = 128
22
 
@@ -118,7 +118,7 @@ gradio_app = gr.Interface(
118
  gr.JSON(label="Decoded text"),
119
  ],
120
  examples=[
121
- ["johnlockejrr/pylaia-samaritan_v1", str(filename)]
122
  for filename in Path("examples").iterdir()
123
  ],
124
  title="Decode the transcription of an image using a PyLaia model",
 
16
  CONFIDENCE_PATTERN = r"(?P<confidence>[0-9.]+)" # For line
17
  TEXT_PATTERN = r"\s*(?P<text>.*)\s*"
18
  LINE_PREDICTION = re.compile(rf"{IMAGE_ID_PATTERN} {CONFIDENCE_PATTERN} {TEXT_PATTERN}")
19
+ models_name = ["johnlockejrr/pylaia-heb_sam_v1"]
20
  MODELS = {}
21
  DEFAULT_HEIGHT = 128
22
 
 
118
  gr.JSON(label="Decoded text"),
119
  ],
120
  examples=[
121
+ ["johnlockejrr/pylaia-pylaia-heb_sam_v1", str(filename)]
122
  for filename in Path("examples").iterdir()
123
  ],
124
  title="Decode the transcription of an image using a PyLaia model",