pierreguillou
commited on
Commit
·
205b44b
1
Parent(s):
07fc59b
Update app.py
Browse files
app.py
CHANGED
@@ -115,13 +115,6 @@ with gr.Blocks(title="Inference APP for Document Understanding at line level (v1
|
|
115 |
<div style="margin-top: 20px"><p>More information about the DocLayNet datasets, the finetuning of the model and this APP in the following blog posts:</p>
|
116 |
<ul><li><a style="text-decoration: none; border-bottom: #64b5f6 0.125em solid; color: #64b5f6" href="https://medium.com/@pierre_guillou/document-ai-document-understanding-model-at-line-level-with-lilt-tesseract-and-doclaynet-dataset-347107a643b8" target="_blank">(02/10/2023) Document AI | Document Understanding model at line level with LiLT, Tesseract and DocLayNet dataset</a></li><li><a style="text-decoration: none; border-bottom: #64b5f6 0.125em solid; color: #64b5f6" href="https://medium.com/@pierre_guillou/document-ai-doclaynet-image-viewer-app-3ac54c19956" target="_blank"> (01/31/2023) Document AI | DocLayNet image viewer APP</a></li><li><a style="text-decoration: none; border-bottom: #64b5f6 0.125em solid; color: #64b5f6" href="https://medium.com/@pierre_guillou/document-ai-processing-of-doclaynet-dataset-to-be-used-by-layout-models-of-the-hugging-face-hub-308d8bd81cdb" target="_blank">(01/27/2023) Document AI | Processing of DocLayNet dataset to be used by layout models of the Hugging Face hub (finetuning, inference)</a></li></ul></div>
|
117 |
""")
|
118 |
-
gr.Examples(
|
119 |
-
[["files/example.pdf"]],
|
120 |
-
[pdf_file],
|
121 |
-
outputboxes,
|
122 |
-
fn=app_outputs,
|
123 |
-
cache_examples=True,
|
124 |
-
)
|
125 |
with gr.Row():
|
126 |
pdf_file = gr.File(label="PDF")
|
127 |
with gr.Row():
|
@@ -165,5 +158,13 @@ with gr.Blocks(title="Inference APP for Document Understanding at line level (v1
|
|
165 |
inputs=[],
|
166 |
outputs=[pdf_file, output_msg] + fileboxes + imgboxes + csvboxes + dfboxes,
|
167 |
)
|
168 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
169 |
demo.launch()
|
|
|
115 |
<div style="margin-top: 20px"><p>More information about the DocLayNet datasets, the finetuning of the model and this APP in the following blog posts:</p>
|
116 |
<ul><li><a style="text-decoration: none; border-bottom: #64b5f6 0.125em solid; color: #64b5f6" href="https://medium.com/@pierre_guillou/document-ai-document-understanding-model-at-line-level-with-lilt-tesseract-and-doclaynet-dataset-347107a643b8" target="_blank">(02/10/2023) Document AI | Document Understanding model at line level with LiLT, Tesseract and DocLayNet dataset</a></li><li><a style="text-decoration: none; border-bottom: #64b5f6 0.125em solid; color: #64b5f6" href="https://medium.com/@pierre_guillou/document-ai-doclaynet-image-viewer-app-3ac54c19956" target="_blank"> (01/31/2023) Document AI | DocLayNet image viewer APP</a></li><li><a style="text-decoration: none; border-bottom: #64b5f6 0.125em solid; color: #64b5f6" href="https://medium.com/@pierre_guillou/document-ai-processing-of-doclaynet-dataset-to-be-used-by-layout-models-of-the-hugging-face-hub-308d8bd81cdb" target="_blank">(01/27/2023) Document AI | Processing of DocLayNet dataset to be used by layout models of the Hugging Face hub (finetuning, inference)</a></li></ul></div>
|
117 |
""")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
118 |
with gr.Row():
|
119 |
pdf_file = gr.File(label="PDF")
|
120 |
with gr.Row():
|
|
|
158 |
inputs=[],
|
159 |
outputs=[pdf_file, output_msg] + fileboxes + imgboxes + csvboxes + dfboxes,
|
160 |
)
|
161 |
+
|
162 |
+
gr.Examples(
|
163 |
+
[["files/example.pdf"]],
|
164 |
+
[pdf_file],
|
165 |
+
outputboxes,
|
166 |
+
fn=app_outputs,
|
167 |
+
cache_examples=True,
|
168 |
+
)
|
169 |
+
|
170 |
demo.launch()
|