Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -12,7 +12,7 @@ def process_document(image, question):
|
|
12 |
return processor.decode(predictions[0], skip_special_tokens=True)
|
13 |
|
14 |
description = "Demo for pix2struct fine-tuned on DocVQA (document visual question answering). To use it, simply upload your image and type a question and click 'submit', or click one of the examples to load them. Read more at the links below."
|
15 |
-
article = "<p style='text-align: center'><a href='https://arxiv.org/pdf/2210.03347.pdf' target='_blank'>PIX2STRUCT: SCREENSHOT PARSING AS PRETRAINING FOR VISUAL LANGUAGE UNDERSTANDING</a>
|
16 |
|
17 |
demo = gr.Interface(
|
18 |
fn=process_document,
|
|
|
12 |
return processor.decode(predictions[0], skip_special_tokens=True)
|
13 |
|
14 |
description = "Demo for pix2struct fine-tuned on DocVQA (document visual question answering). To use it, simply upload your image and type a question and click 'submit', or click one of the examples to load them. Read more at the links below."
|
15 |
+
article = "<p style='text-align: center'><a href='https://arxiv.org/pdf/2210.03347.pdf' target='_blank'>PIX2STRUCT: SCREENSHOT PARSING AS PRETRAINING FOR VISUAL LANGUAGE UNDERSTANDING</a></p>"
|
16 |
|
17 |
demo = gr.Interface(
|
18 |
fn=process_document,
|