Spaces:
Runtime error
Runtime error
Update CSS
Browse files
app.py
CHANGED
@@ -84,8 +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 = "
|
88 |
-
#css = ".output_image, .input_image {height:
|
89 |
# css = ".output_image, .input_image {height: 600px !important}"
|
90 |
|
91 |
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 = ".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 |
iface = gr.Interface(fn=process_image,
|