Spaces:
Runtime error
Runtime error
Amanda commited on
Commit ·
9d78e0d
1
Parent(s): 8959a33
Update app.py
Browse files
app.py
CHANGED
|
@@ -21,7 +21,7 @@ def ensure_list(x):
|
|
| 21 |
|
| 22 |
|
| 23 |
CHECKPOINTS = {
|
| 24 |
-
"LayoutLMv1
|
| 25 |
"LayoutLMv1 for Invoices 💸": "impira/layoutlm-invoices",
|
| 26 |
"Donut 🍩": "naver-clova-ix/donut-base-finetuned-docvqa",
|
| 27 |
}
|
|
@@ -270,12 +270,14 @@ gradio-app h2, .gradio-app h2 {
|
|
| 270 |
"""
|
| 271 |
|
| 272 |
with gr.Blocks(css=CSS) as demo:
|
| 273 |
-
gr.Markdown("# Document
|
| 274 |
gr.Markdown(
|
| 275 |
-
"
|
| 276 |
" uses LayoutLMv1 fine-tuned on DocVQA, a document visual question"
|
| 277 |
" answering dataset, as well as SQuAD, which boosts its English-language comprehension."
|
| 278 |
-
|
|
|
|
|
|
|
| 279 |
)
|
| 280 |
|
| 281 |
document = gr.Variable()
|
|
|
|
| 21 |
|
| 22 |
|
| 23 |
CHECKPOINTS = {
|
| 24 |
+
"LayoutLMv1 📑": "impira/layoutlm-document-qa",
|
| 25 |
"LayoutLMv1 for Invoices 💸": "impira/layoutlm-invoices",
|
| 26 |
"Donut 🍩": "naver-clova-ix/donut-base-finetuned-docvqa",
|
| 27 |
}
|
|
|
|
| 270 |
"""
|
| 271 |
|
| 272 |
with gr.Blocks(css=CSS) as demo:
|
| 273 |
+
gr.Markdown("# Ashling Partners Document Understanding Space: Document QA Comparison")
|
| 274 |
gr.Markdown(
|
| 275 |
+
"This space is inspired by Impira's DocQuery Space"
|
| 276 |
" uses LayoutLMv1 fine-tuned on DocVQA, a document visual question"
|
| 277 |
" answering dataset, as well as SQuAD, which boosts its English-language comprehension."
|
| 278 |
+
" To use it, simply upload an image or PDF, type a question, and click 'submit', or "
|
| 279 |
+
" click one of the examples to load them."
|
| 280 |
+
" DocQuery is MIT-licensed and available on [Github](https://github.com/impira/docquery)."
|
| 281 |
)
|
| 282 |
|
| 283 |
document = gr.Variable()
|