pierreguillou
commited on
Commit
•
824285e
1
Parent(s):
30bc5ae
Update app.py
Browse files
app.py
CHANGED
@@ -181,12 +181,12 @@ with gr.Blocks(title="Inference APP for Document Understanding at line level (v2
|
|
181 |
outputs=[pdf_file, output_msg] + fileboxes + imgboxes + csvboxes + dfboxes,
|
182 |
)
|
183 |
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
|
192 |
demo.launch()
|
|
|
181 |
outputs=[pdf_file, output_msg] + fileboxes + imgboxes + csvboxes + dfboxes,
|
182 |
)
|
183 |
|
184 |
+
gr.Examples(
|
185 |
+
[["files/example.pdf"]],
|
186 |
+
[pdf_file],
|
187 |
+
outputboxes,
|
188 |
+
fn=app_outputs,
|
189 |
+
cache_examples=True,
|
190 |
+
)
|
191 |
|
192 |
demo.launch()
|