Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -113,6 +113,14 @@ with gr.Blocks(css=css) as demo:
|
|
113 |
[],
|
114 |
[pdf_file, pdf_link, parsed_output]
|
115 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
116 |
|
117 |
|
118 |
|
|
|
113 |
[],
|
114 |
[pdf_file, pdf_link, parsed_output]
|
115 |
)
|
116 |
+
gr.Examples(
|
117 |
+
[["nougat.pdf", ""], [None, "https://arxiv.org/pdf/2308.08316.pdf"]],
|
118 |
+
inputs = [pdf_file, pdf_link],
|
119 |
+
outputs = parsed_output,
|
120 |
+
fn=inference,
|
121 |
+
cache_examples=True,
|
122 |
+
label='Click on any Examples below to get Nougat OCR results quickly:'
|
123 |
+
)
|
124 |
|
125 |
|
126 |
|