Spaces:
Runtime error
Runtime error
Commit
·
012203b
1
Parent(s):
9040e48
Update app.py
Browse files
app.py
CHANGED
@@ -253,7 +253,7 @@ with gr.Blocks(title="DocLayNet image viewer", css=".gradio-container") as demo:
|
|
253 |
gr.HTML("""
|
254 |
<div style="font-family:'Times New Roman', 'Serif'; font-size:26pt; font-weight:bold; text-align:center;"><h1>DocLayNet image viewer</h1></div>
|
255 |
<div style="margin-top: 20px"><p>(01/29/2023) This APP is an image viewer of the DocLayNet dataset.</p></div>
|
256 |
-
<div><p>It uses the datasets <a href="https://huggingface.co/datasets/pierreguillou/DocLayNet-small" target="_blank">DocLayNet small</a> and <a href="https://huggingface.co/datasets/pierreguillou/DocLayNet-base" target="_blank">DocLayNet base</a>.</p></div>
|
257 |
<div><p>Make your parameters selections and the output will show 2 images of a randomly selected PDF with annotated bounding boxes, one of paragraphs and the other of lines, and a table of texts with their labels.</p></div>
|
258 |
""")
|
259 |
with gr.Row():
|
@@ -267,14 +267,14 @@ with gr.Blocks(title="DocLayNet image viewer", css=".gradio-container") as demo:
|
|
267 |
category_gr = gr.Dropdown(categories, value="all", label="Category")
|
268 |
btn = gr.Button("Display PDF image")
|
269 |
with gr.Row():
|
270 |
-
output_msg = gr.Textbox(label="
|
271 |
with gr.Row():
|
272 |
# with gr.Column():
|
273 |
# json = gr.JSON(label="JSON")
|
274 |
with gr.Column():
|
275 |
-
img_paragraphs = gr.Image(type="pil", label="Bounding boxes of paragraphs")
|
276 |
with gr.Column():
|
277 |
-
img_lines = gr.Image(type="pil", label="Bounding boxes of lines")
|
278 |
|
279 |
with gr.Row():
|
280 |
with gr.Column():
|
|
|
253 |
gr.HTML("""
|
254 |
<div style="font-family:'Times New Roman', 'Serif'; font-size:26pt; font-weight:bold; text-align:center;"><h1>DocLayNet image viewer</h1></div>
|
255 |
<div style="margin-top: 20px"><p>(01/29/2023) This APP is an image viewer of the DocLayNet dataset.</p></div>
|
256 |
+
<div><p>It uses the datasets <a style="text-decoration: none; border-bottom: #64b5f6 0.125em solid; color: #64b5f6" href="https://huggingface.co/datasets/pierreguillou/DocLayNet-small" target="_blank">DocLayNet small</a> and <a style="text-decoration: none; border-bottom: #64b5f6 0.125em solid; color: #64b5f6" href="https://huggingface.co/datasets/pierreguillou/DocLayNet-base" target="_blank">DocLayNet base</a>.</p></div>
|
257 |
<div><p>Make your parameters selections and the output will show 2 images of a randomly selected PDF with annotated bounding boxes, one of paragraphs and the other of lines, and a table of texts with their labels.</p></div>
|
258 |
""")
|
259 |
with gr.Row():
|
|
|
267 |
category_gr = gr.Dropdown(categories, value="all", label="Category")
|
268 |
btn = gr.Button("Display PDF image")
|
269 |
with gr.Row():
|
270 |
+
output_msg = gr.Textbox(label="Output message")
|
271 |
with gr.Row():
|
272 |
# with gr.Column():
|
273 |
# json = gr.JSON(label="JSON")
|
274 |
with gr.Column():
|
275 |
+
img_paragraphs = gr.Image(type="pil", label="Bounding boxes of labeled paragraphs")
|
276 |
with gr.Column():
|
277 |
+
img_lines = gr.Image(type="pil", label="Bounding boxes of labeled lines")
|
278 |
|
279 |
with gr.Row():
|
280 |
with gr.Column():
|