prithivMLmods commited on
Commit
830e066
·
verified ·
1 Parent(s): 45c2b85

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -1
app.py CHANGED
@@ -241,6 +241,18 @@ h1 {
241
  text-align: center;
242
  display: block;
243
  }
 
 
 
 
 
 
 
 
 
 
 
 
244
  /* Make gallery items smaller */
245
  .gradio-container .gallery {
246
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)) !important; /* Adjust 120px as needed */
@@ -256,7 +268,6 @@ h1 {
256
  height: 100% !important;
257
  width: 100% !important;
258
  }
259
-
260
  """
261
 
262
  title = """<h1 align="center">Diffusers Image Outpaint Lightning</h1>
 
241
  text-align: center;
242
  display: block;
243
  }
244
+
245
+ /* --- Centering the main UI --- */
246
+ .gradio-container {
247
+ max-width: 1280px; /* Adjust this value for desired max width */
248
+ margin-left: auto !important; /* Add !important to override defaults if needed */
249
+ margin-right: auto !important;
250
+ padding-left: 20px; /* Add some padding so content isn't flush against edge */
251
+ padding-right: 20px;
252
+ }
253
+ /* --- End Centering --- */
254
+
255
+
256
  /* Make gallery items smaller */
257
  .gradio-container .gallery {
258
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)) !important; /* Adjust 120px as needed */
 
268
  height: 100% !important;
269
  width: 100% !important;
270
  }
 
271
  """
272
 
273
  title = """<h1 align="center">Diffusers Image Outpaint Lightning</h1>