Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -76,11 +76,12 @@ def process_image(image):
|
|
76 |
|
77 |
title = "π§ π AI Document Understanding OCR Using LayoutLMv2, FUNSD, and UNILM ππ§ "
|
78 |
|
79 |
-
description = "LayoutLMv2
|
80 |
|
81 |
article = "<p style='text-align: center'><a href='https://paperswithcode.com/paper/layoutlmv2-multi-modal-pre-training-for' target='_blank'>LayoutLMv2 on PapersWithCode</a> | <a href='https://github.com/microsoft/unilm' target='_blank'>UNILM Git</a></p>"
|
82 |
|
83 |
-
examples =[['document.png']]
|
|
|
84 |
|
85 |
#css = ".output-image, .input-image {height: 40rem !important; width: 100% !important;}"
|
86 |
css = ".image-preview {height: auto !important;}"
|
|
|
76 |
|
77 |
title = "π§ π AI Document Understanding OCR Using LayoutLMv2, FUNSD, and UNILM ππ§ "
|
78 |
|
79 |
+
description = "LayoutLMv2: https://paperswithcode.com/paper/layoutlmv2-multi-modal-pre-training-for fine-tuned on FUNSD, a dataset of manually annotated forms annotates words appearing in the image as QUESTION/ANSWER/HEADER/OTHER."
|
80 |
|
81 |
article = "<p style='text-align: center'><a href='https://paperswithcode.com/paper/layoutlmv2-multi-modal-pre-training-for' target='_blank'>LayoutLMv2 on PapersWithCode</a> | <a href='https://github.com/microsoft/unilm' target='_blank'>UNILM Git</a></p>"
|
82 |
|
83 |
+
#examples =[['document.png']]
|
84 |
+
examples = [f"{i}.jpg" for i in range(1,5)]
|
85 |
|
86 |
#css = ".output-image, .input-image {height: 40rem !important; width: 100% !important;}"
|
87 |
css = ".image-preview {height: auto !important;}"
|