nielsr HF staff commited on
Commit
b39aaad
·
1 Parent(s): 8b94057

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -52,7 +52,7 @@ def analyze_image(img):
52
  return result_image
53
 
54
  title = "Interactive demo: Document Layout Analysis with DiT"
55
- description = "Demo for Microsoft's DiT, the Document Image Transformer for state-of-the-art document understanding tasks. This particular model is fine-tuned on PubLayNet, a large dataset for document layout analysis. To use it, simply upload an image or use the example image below and click 'Submit'. Results will show up in a few seconds. If you want to make the output bigger, right-click on it and select 'Open image in new tab'."
56
  article = "<p style='text-align: center'><a href='https://arxiv.org/abs/2203.02378' target='_blank'>DiT: Self-supervised Pre-training for Document Image Transformer</a> | <a href='https://github.com/microsoft/unilm/dit' target='_blank'>Github Repo</a></p>"
57
  examples =[['publaynet_example.jpeg']]
58
  css = ".output-image, .input-image, .image-preview {height: 600px !important}"
@@ -63,6 +63,7 @@ iface = gr.Interface(fn=analyze_image,
63
  title=title,
64
  description=description,
65
  examples=examples,
 
66
  css=css,
67
  enable_queue=True)
68
  iface.launch(debug=True, cache_examples=True)
 
52
  return result_image
53
 
54
  title = "Interactive demo: Document Layout Analysis with DiT"
55
+ description = "Demo for Microsoft's DiT, the Document Image Transformer for state-of-the-art document understanding tasks. This particular model is fine-tuned on PubLayNet, a large dataset for document layout analysis (read more at the links below). To use it, simply upload an image or use the example image below and click 'Submit'. Results will show up in a few seconds. If you want to make the output bigger, right-click on it and select 'Open image in new tab'."
56
  article = "<p style='text-align: center'><a href='https://arxiv.org/abs/2203.02378' target='_blank'>DiT: Self-supervised Pre-training for Document Image Transformer</a> | <a href='https://github.com/microsoft/unilm/dit' target='_blank'>Github Repo</a></p>"
57
  examples =[['publaynet_example.jpeg']]
58
  css = ".output-image, .input-image, .image-preview {height: 600px !important}"
 
63
  title=title,
64
  description=description,
65
  examples=examples,
66
+ article=article,
67
  css=css,
68
  enable_queue=True)
69
  iface.launch(debug=True, cache_examples=True)