Spaces:
Runtime error
Runtime error
File size: 805 Bytes
940ed19 afa689f 940ed19 afa689f 940ed19 afa689f 01d656f afa689f a21cc4e |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
import gradio as gr
from helpers import majority_vote_dicts
from model import process_document, process_pdf
input_interface = gr.inputs.File(label="Upload a PDF file")
description = "Gradio Demo for Donut trained on Quandri internal dataset."
gradio_interface = gr.Interface(fn=process_pdf,
inputs=input_interface,
outputs= 'json',
title="Demo: Donut π© for Document Parsing on Quandri Dataset",
description=description,
examples=[["data/aviva.pdf"], ["data/wawanesa.pdf"], ["data/sgi.pdf"]],
cache_examples=False
)
gradio_interface.launch(auth=("quandri", "Quandri@1234")) |