xinjie.wang commited on
Commit
b2b097d
·
1 Parent(s): da4caa5
Files changed (1) hide show
  1. app.py +8 -0
app.py CHANGED
@@ -46,6 +46,14 @@ with gr.Blocks(
46
  <style>
47
  #img-fit img {
48
  object-fit: contain !important;
 
 
 
 
 
 
 
 
49
  }
50
  </style>
51
  """
 
46
  <style>
47
  #img-fit img {
48
  object-fit: contain !important;
49
+ width: 100% !important;
50
+ height: 100% !important;
51
+ }
52
+ #img-fit {
53
+ display: flex;
54
+ align-items: center;
55
+ justify-content: center;
56
+ overflow: hidden !important;
57
  }
58
  </style>
59
  """