Spaces:
Sleeping
Sleeping
wjbmattingly
commited on
Commit
•
c963155
1
Parent(s):
6e1b306
Update app.py
Browse files
app.py
CHANGED
@@ -20,7 +20,7 @@ MODEL_OPTIONS = {
|
|
20 |
|
21 |
# Load image examples
|
22 |
urls = [
|
23 |
-
'https://huggingface.co/medieval-data/trocr-medieval-base/
|
24 |
]
|
25 |
|
26 |
for idx, url in enumerate(urls):
|
@@ -47,11 +47,10 @@ def process_image(image, model_name):
|
|
47 |
return generated_text
|
48 |
|
49 |
title = "Interactive demo: TrOCR Model Switcher"
|
50 |
-
description = "Demo for
|
51 |
-
article = "<p style='text-align: center'><a href='https://arxiv.org/abs/2109.10282'>TrOCR: Transformer-based Optical Character Recognition with Pre-trained Models</a> | <a href='https://github.com/microsoft/unilm/tree/master/trocr'>Github Repo</a></p>"
|
52 |
|
53 |
examples = [
|
54 |
-
["https://huggingface.co/medieval-data/trocr-medieval-base/
|
55 |
]
|
56 |
|
57 |
iface = gr.Interface(
|
|
|
20 |
|
21 |
# Load image examples
|
22 |
urls = [
|
23 |
+
'https://huggingface.co/medieval-data/trocr-medieval-base/resolve/main/images/caroline-1.png'
|
24 |
]
|
25 |
|
26 |
for idx, url in enumerate(urls):
|
|
|
47 |
return generated_text
|
48 |
|
49 |
title = "Interactive demo: TrOCR Model Switcher"
|
50 |
+
description = "Demo for the Medieval TrOCR HTR Models."
|
|
|
51 |
|
52 |
examples = [
|
53 |
+
["https://huggingface.co/medieval-data/trocr-medieval-base/resolve/main/images/caroline-1.png", "Caroline"]
|
54 |
]
|
55 |
|
56 |
iface = gr.Interface(
|