Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -15,9 +15,9 @@ def process_image(image):
|
|
15 |
title = "Transforme(encoder-decoder) based Text OCR"
|
16 |
description = "Demo for Microsoft's TrOCR, an encoder-decoder model \
|
17 |
consisting of an image Transformer encoder and a text Transformer \
|
18 |
-
decoder for state-of-the-art optical character recognition (OCR) on \
|
19 |
single-text line images. This particular model is fine-tuned on IAM, \
|
20 |
-
a dataset of annotated handwritten images.
|
21 |
article = "<p style='text-align: center'><a href='https://arxiv.org/abs/2109.10282'>Transformer Optical Character Recognition with Pre-trained Models</a> | <a href='https://github.com/microsoft/unilm/tree/master/trocr'>Github Repo</a></p>"
|
22 |
|
23 |
iface = gr.Interface(fn=process_image,
|
|
|
15 |
title = "Transforme(encoder-decoder) based Text OCR"
|
16 |
description = "Demo for Microsoft's TrOCR, an encoder-decoder model \
|
17 |
consisting of an image Transformer encoder and a text Transformer \
|
18 |
+
decoder for state-of-the-art optical character recognition (OCR) on \
|
19 |
single-text line images. This particular model is fine-tuned on IAM, \
|
20 |
+
a dataset of annotated handwritten images."
|
21 |
article = "<p style='text-align: center'><a href='https://arxiv.org/abs/2109.10282'>Transformer Optical Character Recognition with Pre-trained Models</a> | <a href='https://github.com/microsoft/unilm/tree/master/trocr'>Github Repo</a></p>"
|
22 |
|
23 |
iface = gr.Interface(fn=process_image,
|