model2 commited on
Commit
aec6dd4
·
1 Parent(s): 7ade22f
Files changed (1) hide show
  1. app.py +29 -22
app.py CHANGED
@@ -272,37 +272,33 @@ if __name__ == "__main__":
272
  /* Container for side-by-side example images */
273
  #example-images {
274
  display: flex;
275
- gap: 20px;
276
- flex-wrap: wrap; /* Wrap if not enough space */
277
- justify-content: center; /* Center them in their container */
278
- margin-bottom: 1rem;
 
 
 
 
 
 
 
 
 
279
  }
280
 
281
- /* Each example image column */
282
  .example-image img {
283
  width: 100%;
284
  height: auto;
285
- max-width: 300px; /* You can adjust this for larger previews */
286
  }
287
 
288
- /* If you REALLY want them side-by-side on mobile,
289
- let them scroll horizontally instead of wrapping. */
290
  @media (max-width: 768px) {
291
  #example-images {
 
292
  overflow-x: auto;
293
- flex-wrap: nowrap; /* Force side-by-side with horizontal scroll */
294
- }
295
- }
296
-
297
- /* Fix the main input/output image sizes for uniform display */
298
- #fixed-image-size {
299
- max-width: 600px !important;
300
- max-height: 600px !important;
301
- }
302
- @media (max-width: 768px) {
303
- #fixed-image-size {
304
- max-width: 320px !important;
305
- max-height: 320px !important;
306
  }
307
  }
308
  """
@@ -310,7 +306,6 @@ if __name__ == "__main__":
310
  with gr.Blocks(css=css_code, theme=gr.themes.Base()) as app:
311
  gr.Markdown("# 🥸 Advance Blur")
312
 
313
- # Side-by-side examples
314
  with gr.Row(elem_id="example-images"):
315
  with gr.Column(elem_classes=["example-image"]):
316
  gr.Image(
@@ -327,6 +322,7 @@ if __name__ == "__main__":
327
  interactive=False,
328
  )
329
 
 
330
  with gr.Accordion("More info", open=False):
331
  gr.Markdown(
332
  """
@@ -344,6 +340,17 @@ if __name__ == "__main__":
344
  should).
345
 
346
  Advance Blur only seeks to perfect images using the depiction of the ideal American male.
 
 
 
 
 
 
 
 
 
 
 
347
  """
348
  )
349
 
 
272
  /* Container for side-by-side example images */
273
  #example-images {
274
  display: flex;
275
+ flex-direction: row;
276
+ justify-content: center;
277
+ align-items: flex-start;
278
+ flex-wrap: wrap;
279
+ gap: 16px;
280
+ margin: 0 auto;
281
+ max-width: 680px; /* ✅ NEW: constrain the overall width */
282
+ width: 100%;
283
+ }
284
+
285
+ .example-image {
286
+ flex: 1 1 45%;
287
+ max-width: 300px;
288
  }
289
 
 
290
  .example-image img {
291
  width: 100%;
292
  height: auto;
293
+ border-radius: 8px;
294
  }
295
 
296
+ /* Mobile: allow scroll if necessary */
 
297
  @media (max-width: 768px) {
298
  #example-images {
299
+ flex-wrap: nowrap;
300
  overflow-x: auto;
301
+ justify-content: flex-start;
 
 
 
 
 
 
 
 
 
 
 
 
302
  }
303
  }
304
  """
 
306
  with gr.Blocks(css=css_code, theme=gr.themes.Base()) as app:
307
  gr.Markdown("# 🥸 Advance Blur")
308
 
 
309
  with gr.Row(elem_id="example-images"):
310
  with gr.Column(elem_classes=["example-image"]):
311
  gr.Image(
 
322
  interactive=False,
323
  )
324
 
325
+
326
  with gr.Accordion("More info", open=False):
327
  gr.Markdown(
328
  """
 
340
  should).
341
 
342
  Advance Blur only seeks to perfect images using the depiction of the ideal American male.
343
+
344
+ **Instructions:**
345
+ 1. Upload your image.
346
+ 2. Click the "Submit" button to apply "Vance Blurring" to your image.
347
+ 3. Download the blurred image by long-clicking on it to Copy or down-arrow to Save.
348
+ 4. Share the blurred image with your friends and family, feeling confident in your privacy!
349
+
350
+ **Tips:**
351
+ - For best results, use high-quality images at medium-ranges.
352
+ - Works best when faces are front-facing and well-lit.
353
+ - Always check the final image before sharing.
354
  """
355
  )
356