nielsr HF staff commited on
Commit
f33a77d
1 Parent(s): 708136c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -1
app.py CHANGED
@@ -60,7 +60,13 @@ def analyze_image(img):
60
  return result_image
61
 
62
  title = "Interactive demo: Document Layout Analysis with DiT"
63
- 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'."
 
 
 
 
 
 
64
  article = "<p style='text-align: center'><a href='https://arxiv.org/abs/2203.02378' target='_blank'>Paper</a> | <a href='https://github.com/microsoft/unilm/tree/master/dit' target='_blank'>Github Repo</a></p> | <a href='https://huggingface.co/docs/transformers/master/en/model_doc/dit' target='_blank'>HuggingFace doc</a></p>"
65
  examples =[['publaynet_example.jpeg']]
66
  css = ".output-image, .input-image, .image-preview {height: 600px !important}"
 
60
  return result_image
61
 
62
  title = "Interactive demo: Document Layout Analysis with DiT"
63
+ description = """
64
+ Demo for Microsoft's DiT, the Document Image Transformer for state-of-the-art document understanding tasks.
65
+
66
+ NOTE: this Space currently gives an error, I recommend trying out this one: https://huggingface.co/spaces/wyyadd/dit-document-layout-analysis. Feel free to open a PR to make the required changes. Thanks!
67
+
68
+ 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'.
69
+ """
70
  article = "<p style='text-align: center'><a href='https://arxiv.org/abs/2203.02378' target='_blank'>Paper</a> | <a href='https://github.com/microsoft/unilm/tree/master/dit' target='_blank'>Github Repo</a></p> | <a href='https://huggingface.co/docs/transformers/master/en/model_doc/dit' target='_blank'>HuggingFace doc</a></p>"
71
  examples =[['publaynet_example.jpeg']]
72
  css = ".output-image, .input-image, .image-preview {height: 600px !important}"