pierreguillou commited on
Commit
141882c
·
1 Parent(s): c4889d5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -8
app.py CHANGED
@@ -115,6 +115,14 @@ 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
  with gr.Row():
119
  pdf_file = gr.File(label="PDF")
120
  with gr.Row():
@@ -159,12 +167,4 @@ with gr.Blocks(title="Inference APP for Document Understanding at line level (v1
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()
 
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
+ gr.Examples(
120
+ [["files/example.pdf"]],
121
+ [pdf_file],
122
+ outputboxes,
123
+ fn=app_outputs,
124
+ cache_examples=True,
125
+ )
126
  with gr.Row():
127
  pdf_file = gr.File(label="PDF")
128
  with gr.Row():
 
167
  outputs=[pdf_file, output_msg] + fileboxes + imgboxes + csvboxes + dfboxes,
168
  )
169
 
 
 
 
 
 
 
 
 
170
  demo.launch()