rajistics commited on
Commit
e575db9
Β·
1 Parent(s): a6734f3

trying to get the image right

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -83,10 +83,10 @@ description = "Demo for Microsoft's LayoutLMv3, a Transformer for state-of-the-a
83
  article = "<p style='text-align: center'><a href='https://arxiv.org/abs/2204.08387' target='_blank'>LayoutLMv3: Multi-modal Pre-training for Visually-Rich Document Understanding</a> | <a href='https://github.com/microsoft/unilm' target='_blank'>Github Repo</a></p>"
84
  examples =[['test0.jpeg'],['./test1.jpeg'],['test2.jpeg']]
85
 
86
- css = ".output-image, .input-image"
87
  #css = ".output-image, .input-image {height: 40rem !important; width: 100% !important;}"
88
  #css = "@media screen and (max-width: 600px) { .output_image, .input_image {height:20rem !important; width: 100% !important;} }"
89
- #$css = ".output_image, .input_image {height: 600px !important}"
90
 
91
  css = ".image-preview {height: auto !important;}"
92
 
@@ -97,6 +97,6 @@ iface = gr.Interface(fn=process_image,
97
  description=description,
98
  article=article,
99
  examples=examples,
100
- #css=css,
101
  enable_queue=True)
102
  iface.launch(debug=True)
 
83
  article = "<p style='text-align: center'><a href='https://arxiv.org/abs/2204.08387' target='_blank'>LayoutLMv3: Multi-modal Pre-training for Visually-Rich Document Understanding</a> | <a href='https://github.com/microsoft/unilm' target='_blank'>Github Repo</a></p>"
84
  examples =[['test0.jpeg'],['./test1.jpeg'],['test2.jpeg']]
85
 
86
+ #css = ".output-image, .input-image"
87
  #css = ".output-image, .input-image {height: 40rem !important; width: 100% !important;}"
88
  #css = "@media screen and (max-width: 600px) { .output_image, .input_image {height:20rem !important; width: 100% !important;} }"
89
+ css = ".output_image {height: 600px !important}, .input_image {height: 600px !important}"
90
 
91
  css = ".image-preview {height: auto !important;}"
92
 
 
97
  description=description,
98
  article=article,
99
  examples=examples,
100
+ css=css,
101
  enable_queue=True)
102
  iface.launch(debug=True)