pierreguillou commited on
Commit
cc3f35c
·
1 Parent(s): 012203b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -253,13 +253,13 @@ 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 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():
260
  with gr.Column():
261
- dataset_name_gr = gr.Radio(dataset_names, value="small", label="DocLayNet dataset")
262
- with gr.Column():
263
  split_gr = gr.Dropdown(splits, value="all", label="Split")
264
  with gr.Column():
265
  domain_gr = gr.Dropdown(domains, value="all", label="Domain")
@@ -310,4 +310,4 @@ with gr.Blocks(title="DocLayNet image viewer", css=".gradio-container") as demo:
310
  cache_examples=True,
311
  )
312
 
313
- demo.launch()
 
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 dataset <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> (in the corresponding notebook, the <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> is used, too).</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():
260
  with gr.Column():
261
+ dataset_name_gr = gr.Radio(["small"], value="small", label="DocLayNet dataset")
262
+ with gr.Column():"
263
  split_gr = gr.Dropdown(splits, value="all", label="Split")
264
  with gr.Column():
265
  domain_gr = gr.Dropdown(domains, value="all", label="Domain")
 
310
  cache_examples=True,
311
  )
312
 
313
+ demo.launch(share=True)