Spaces:
Runtime error
Runtime error
Fix description
Browse files
app.py
CHANGED
@@ -29,7 +29,7 @@ def process_image(image):
|
|
29 |
return generated_text
|
30 |
|
31 |
title = "Interactive demo: TrOCR"
|
32 |
-
description = "Demo for Microsoft's TrOCR, an encoder-decoder model consisting of an image Transformer encoder and a text Transformer decoder for state-of-the-art optical character recognition (OCR) on single-text line images. This particular model is fine-tuned on IAM, a dataset of annotated handwritten images. To use it, simply upload a (single-text line) image or use the example
|
33 |
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>"
|
34 |
examples =[["image_0.png"], ["image_1.png"], ["image_2.png"]]
|
35 |
|
|
|
29 |
return generated_text
|
30 |
|
31 |
title = "Interactive demo: TrOCR"
|
32 |
+
description = "Demo for Microsoft's TrOCR, an encoder-decoder model consisting of an image Transformer encoder and a text Transformer decoder for state-of-the-art optical character recognition (OCR) on single-text line images. This particular model is fine-tuned on IAM, a dataset of annotated handwritten images. To use it, simply upload a (single-text line) image or use one of the example images below and click 'submit'. Results will show up in a few seconds."
|
33 |
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>"
|
34 |
examples =[["image_0.png"], ["image_1.png"], ["image_2.png"]]
|
35 |
|