Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -27,17 +27,12 @@ def process_image(image):
|
|
27 |
|
28 |
title = "TrOCR - Fine tuned on IAM Dataset"
|
29 |
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>"
|
30 |
-
examples =[
|
31 |
-
["./examples/image_0.png"],
|
32 |
-
["./examples/image_1.png"],
|
33 |
-
["./examples/image_2.png"]
|
34 |
-
]
|
35 |
|
36 |
#css = """.output_image, .input_image {height: 600px !important}"""
|
37 |
|
38 |
examples = [
|
39 |
-
[os.path.join(os.path.abspath(''), './examples/sample_1.
|
40 |
-
[os.path.join(os.path.abspath(''), './examples/sample_2.
|
41 |
[os.path.join(os.path.abspath(''), './examples/sample_3.jpg')]
|
42 |
]
|
43 |
description = """
|
|
|
27 |
|
28 |
title = "TrOCR - Fine tuned on IAM Dataset"
|
29 |
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>"
|
|
|
|
|
|
|
|
|
|
|
30 |
|
31 |
#css = """.output_image, .input_image {height: 600px !important}"""
|
32 |
|
33 |
examples = [
|
34 |
+
[os.path.join(os.path.abspath(''), './examples/sample_1.jpg')],
|
35 |
+
[os.path.join(os.path.abspath(''), './examples/sample_2.jpg')],
|
36 |
[os.path.join(os.path.abspath(''), './examples/sample_3.jpg')]
|
37 |
]
|
38 |
description = """
|