Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -22,12 +22,12 @@ article = "<p style='text-align: center'><a href='https://arxiv.org/pdf/2212.026
|
|
22 |
|
23 |
demo = gr.Interface(
|
24 |
fn=process_document,
|
25 |
-
inputs=["image", "
|
26 |
-
outputs="
|
27 |
title="Demo: UDOP for DocVQA",
|
28 |
description=description,
|
29 |
article=article,
|
30 |
-
|
31 |
-
cache_examples=
|
32 |
|
33 |
demo.launch()
|
|
|
22 |
|
23 |
demo = gr.Interface(
|
24 |
fn=process_document,
|
25 |
+
inputs=["image", gr.Textbox(label = "Question" )],
|
26 |
+
outputs=gr.Textbox(label = "Response" )
|
27 |
title="Demo: UDOP for DocVQA",
|
28 |
description=description,
|
29 |
article=article,
|
30 |
+
examples=[["example_1.png", "When is the coffee break?"]],
|
31 |
+
cache_examples=True)
|
32 |
|
33 |
demo.launch()
|