nielsr HF staff commited on
Commit
0b4d10c
1 Parent(s): abcbf58

Add media screen

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -84,7 +84,8 @@ description = "Demo for Microsoft's LayoutLMv2, a Transformer for state-of-the-a
84
  article = "<p style='text-align: center'><a href='https://arxiv.org/abs/2012.14740' target='_blank'>LayoutLMv2: Multi-modal Pre-training for Visually-Rich Document Understanding</a> | <a href='https://github.com/microsoft/unilm' target='_blank'>Github Repo</a></p>"
85
  examples =[['document.png']]
86
 
87
- css = ".output_image, .input_image {height: 40rem !important; width: 100% !important;}"
 
88
  # css = ".output_image, .input_image {height: 600px !important}"
89
 
90
  iface = gr.Interface(fn=process_image,
 
84
  article = "<p style='text-align: center'><a href='https://arxiv.org/abs/2012.14740' target='_blank'>LayoutLMv2: Multi-modal Pre-training for Visually-Rich Document Understanding</a> | <a href='https://github.com/microsoft/unilm' target='_blank'>Github Repo</a></p>"
85
  examples =[['document.png']]
86
 
87
+ css = "@media screen and (max-width: 600px) { .output_image, .input_image {height:20rem !important; width: 100% !important;} }"
88
+ #css = ".output_image, .input_image {height: 40rem !important; width: 100% !important;}"
89
  # css = ".output_image, .input_image {height: 600px !important}"
90
 
91
  iface = gr.Interface(fn=process_image,