ngoctuanai commited on
Commit
5f13e39
·
1 Parent(s): 4c3811e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -4
app.py CHANGED
@@ -129,20 +129,22 @@ css = """
129
 
130
  /* Gallery Styles */
131
  #gallery {
 
 
 
132
  /* [Existing styles] */
133
  border-radius: 12px; /* Rounded corners for the gallery */
134
  }
135
 
136
  /* Automatically adjust photo size */
137
  #gallery img {
138
- max-width: 100%; /* Ảnh không vượt quá 100% chiều rộng của #gallery */
139
- height: auto; /* Giữ tỷ lệ khung hình */
140
  }
141
 
142
-
143
  /* Reduce image size */
144
  .gradio-container img {
145
- max-width: 50%; /* Adjust the percentage to make images smaller */
146
  height: auto; /* Maintain aspect ratio */
147
  }
148
  """
 
129
 
130
  /* Gallery Styles */
131
  #gallery {
132
+ display: flex;
133
+ justify-content: center; /* Center horizontally */
134
+ align-items: center; /* Center vertically */
135
  /* [Existing styles] */
136
  border-radius: 12px; /* Rounded corners for the gallery */
137
  }
138
 
139
  /* Automatically adjust photo size */
140
  #gallery img {
141
+ max-width: 50%; /* Images don't exceed 50% of the gallery's width */
142
+ height: auto; /* Maintain aspect ratio */
143
  }
144
 
 
145
  /* Reduce image size */
146
  .gradio-container img {
147
+ max-width: 50%; /* Images don't exceed 50% of the gallery's width */
148
  height: auto; /* Maintain aspect ratio */
149
  }
150
  """