Spaces:
Running
on
Zero
Running
on
Zero
gradio
Browse files
app.py
CHANGED
@@ -277,25 +277,44 @@ if __name__ == "__main__":
|
|
277 |
css_code = """
|
278 |
#fixed-image-size {
|
279 |
max-width: 500px !important; /* fix the width of image */
|
280 |
-
height: 500px !important; /* fix the height of image */
|
281 |
object-fit: cover; /* makes the image fill area without stretching */
|
282 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
283 |
"""
|
284 |
with gr.Blocks(css=css_code, theme=gr.themes.Base()) as app:
|
285 |
-
gr.Markdown(
|
286 |
-
|
287 |
-
# Advance Blur
|
288 |
|
289 |
-
|
290 |
-
|
291 |
-
Uploaded images and data are permanently deleted after processing.
|
292 |
|
293 |
-
|
294 |
-
|
295 |
-
|
|
|
296 |
|
297 |
-
|
|
|
|
|
|
|
298 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
299 |
with gr.Column():
|
300 |
input_image = gr.Image(
|
301 |
type="filepath",
|
|
|
277 |
css_code = """
|
278 |
#fixed-image-size {
|
279 |
max-width: 500px !important; /* fix the width of image */
|
280 |
+
max-height: 500px !important; /* fix the height of image */
|
281 |
object-fit: cover; /* makes the image fill area without stretching */
|
282 |
}
|
283 |
+
|
284 |
+
/* Use smaller max sizes on mobile */
|
285 |
+
@media (max-width: 768px) {
|
286 |
+
#fixed-image-size {
|
287 |
+
max-width: 300px !important;
|
288 |
+
max-height: 300px !important;
|
289 |
+
}
|
290 |
+
}
|
291 |
"""
|
292 |
with gr.Blocks(css=css_code, theme=gr.themes.Base()) as app:
|
293 |
+
gr.Markdown( """
|
294 |
+
# 🥸 Advance Blur
|
|
|
295 |
|
296 |
+
Anonymize your group photos using Vance Blurring!
|
297 |
+
""")
|
|
|
298 |
|
299 |
+
with gr.Accordion("More info"):
|
300 |
+
gr.Markdown(
|
301 |
+
"""
|
302 |
+
**Advance Blur** uses a sophisticated technique called "Vance Blurring" to anonymize images of people!
|
303 |
|
304 |
+
**Features:**
|
305 |
+
- **Replaces up to 100 faces:** Anonymize your images using the face of the ideal American male!
|
306 |
+
- **Removes identifying metadata:** Ensures your privacy by removing all identifying EXIF, IPTC, and XMP metadata!
|
307 |
+
- **Safe and secure:** All uploaded images and data are permanently deleted after processing!
|
308 |
|
309 |
+
**Disclaimer:**
|
310 |
+
This application is for entertainment purposes only.
|
311 |
+
Any resemblance to actual persons, living or dead, is purely coincidental, comedic, karmic, and/or parody.
|
312 |
+
|
313 |
+
_No sofas, couches, chaises, or other living-room furniture were harmed in the production of Advance Blur._
|
314 |
+
"""
|
315 |
+
)
|
316 |
+
|
317 |
+
with gr.Row():
|
318 |
with gr.Column():
|
319 |
input_image = gr.Image(
|
320 |
type="filepath",
|