Spaces:
Build error
Build error
Upload app.py
Browse files
app.py
CHANGED
@@ -83,7 +83,7 @@ def infer(image):
|
|
83 |
title = "Interactive demo: layoutxlm-ja"
|
84 |
description = "Demo for Microsoft's layoutxlm-ja, a Transformer for state-of-the-art document image understanding tasks. For More Information - https://huggingface.co/microsoft/layoutxlm-base. This particular model is fine-tuned on XFUND japanese, a dataset of manually annotated forms. It annotates the words appearing in the image as QUESTION/ANSWER/HEADER/OTHER. To use it, simply upload an image or use the example image below and click 'Submit'. Results will show up in a few seconds. If you want to make the output bigger, right-click on it and select 'Open image in new tab'."
|
85 |
article = "<p style='text-align: center'><a href='https://arxiv.org/abs/2104.08836' target='_blank'>LayoutXLM: LayoutXLM is a multilingual variant of LayoutLMv2. Pre-training for Visually-Rich Document Understanding</a> | <a href='https://github.com/microsoft/unilm' target='_blank'>Github Repo</a></p>"
|
86 |
-
examples =[['document.
|
87 |
|
88 |
css = ".output-image, .input-image {height: 40rem !important; width: 100% !important;}"
|
89 |
|
|
|
83 |
title = "Interactive demo: layoutxlm-ja"
|
84 |
description = "Demo for Microsoft's layoutxlm-ja, a Transformer for state-of-the-art document image understanding tasks. For More Information - https://huggingface.co/microsoft/layoutxlm-base. This particular model is fine-tuned on XFUND japanese, a dataset of manually annotated forms. It annotates the words appearing in the image as QUESTION/ANSWER/HEADER/OTHER. To use it, simply upload an image or use the example image below and click 'Submit'. Results will show up in a few seconds. If you want to make the output bigger, right-click on it and select 'Open image in new tab'."
|
85 |
article = "<p style='text-align: center'><a href='https://arxiv.org/abs/2104.08836' target='_blank'>LayoutXLM: LayoutXLM is a multilingual variant of LayoutLMv2. Pre-training for Visually-Rich Document Understanding</a> | <a href='https://github.com/microsoft/unilm' target='_blank'>Github Repo</a></p>"
|
86 |
+
examples =[['document.jpg']]
|
87 |
|
88 |
css = ".output-image, .input-image {height: 40rem !important; width: 100% !important;}"
|
89 |
|