model2 commited on
Commit
8d2ffbe
·
1 Parent(s): 33933c2
Files changed (1) hide show
  1. app.py +24 -18
app.py CHANGED
@@ -288,6 +288,13 @@ if __name__ == "__main__":
288
  }
289
  }
290
 
 
 
 
 
 
 
 
291
  .example-image {
292
  max-width: 200px !important; /* fix the width of image */
293
  max-height: 200px !important; /* fix the height of image */
@@ -300,24 +307,23 @@ if __name__ == "__main__":
300
  Anonymize your group photos using Vance Blurring!
301
  """)
302
 
303
- with gr.Row():
304
- with gr.Row():
305
- with gr.Column():
306
- gr.Image(
307
- value="before.jpg",
308
- label="Before",
309
- show_label=True,
310
- interactive=False,
311
- elem_classes=["example-image"]
312
- )
313
- with gr.Column():
314
- gr.Image(
315
- value="after.jpg",
316
- label="After",
317
- show_label=True,
318
- interactive=False,
319
- elem_classes=["example-image"]
320
- )
321
 
322
  with gr.Accordion("More info", open=False):
323
  gr.Markdown(
 
288
  }
289
  }
290
 
291
+ example-images {
292
+ display: flex;
293
+ max-width: 600px;
294
+ align-items: center;
295
+ align: left;
296
+ }
297
+
298
  .example-image {
299
  max-width: 200px !important; /* fix the width of image */
300
  max-height: 200px !important; /* fix the height of image */
 
307
  Anonymize your group photos using Vance Blurring!
308
  """)
309
 
310
+ with gr.Row(elem_id="example-images"):
311
+ with gr.Column():
312
+ gr.Image(
313
+ value="before.jpg",
314
+ label="Before",
315
+ show_label=True,
316
+ interactive=False,
317
+ elem_classes=["example-image"]
318
+ )
319
+ with gr.Column():
320
+ gr.Image(
321
+ value="after.jpg",
322
+ label="After",
323
+ show_label=True,
324
+ interactive=False,
325
+ elem_classes=["example-image"]
326
+ )
 
327
 
328
  with gr.Accordion("More info", open=False):
329
  gr.Markdown(