Spaces:
Running
Running
Commit
Β·
400fdc3
1
Parent(s):
46c4c23
init
Browse files
app.py
CHANGED
|
@@ -488,12 +488,12 @@ def edit_image_interface(input_image, prompt, request: gr.Request, progress=gr.P
|
|
| 488 |
blurred_image = apply_gaussian_blur_to_image_url(result_url)
|
| 489 |
if blurred_image is not None:
|
| 490 |
final_result = blurred_image # Return PIL Image object
|
| 491 |
-
final_message = f"β οΈ
|
| 492 |
print(f"π Applied Gaussian blur for NSFW content - IP: {client_ip}")
|
| 493 |
else:
|
| 494 |
# Blur failed, return original URL with warning
|
| 495 |
final_result = result_url
|
| 496 |
-
final_message = f"β οΈ
|
| 497 |
|
| 498 |
# Generate NSFW button for blurred content
|
| 499 |
nsfw_action_buttons_html = f"""
|
|
@@ -514,7 +514,7 @@ def edit_image_interface(input_image, prompt, request: gr.Request, progress=gr.P
|
|
| 514 |
box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
|
| 515 |
transition: all 0.3s ease;
|
| 516 |
border: none;
|
| 517 |
-
'>π₯ Unlimited
|
| 518 |
</div>
|
| 519 |
"""
|
| 520 |
return final_result, final_message, gr.update(value=nsfw_action_buttons_html, visible=True)
|
|
@@ -848,12 +848,12 @@ def local_edit_interface(image_dict, prompt, reference_image, request: gr.Reques
|
|
| 848 |
blurred_image = apply_gaussian_blur_to_image_url(result_url)
|
| 849 |
if blurred_image is not None:
|
| 850 |
final_result = blurred_image # Return PIL Image object
|
| 851 |
-
final_message = f"β οΈ
|
| 852 |
print(f"π Local edit applied Gaussian blur for NSFW content - IP: {client_ip}")
|
| 853 |
else:
|
| 854 |
# Blur failed, return original URL with warning
|
| 855 |
final_result = result_url
|
| 856 |
-
final_message = f"β οΈ
|
| 857 |
|
| 858 |
# Generate NSFW button for blurred content
|
| 859 |
nsfw_action_buttons_html = f"""
|
|
@@ -874,7 +874,7 @@ def local_edit_interface(image_dict, prompt, reference_image, request: gr.Reques
|
|
| 874 |
box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
|
| 875 |
transition: all 0.3s ease;
|
| 876 |
border: none;
|
| 877 |
-
'>π₯ Unlimited
|
| 878 |
</div>
|
| 879 |
"""
|
| 880 |
return final_result, final_message, gr.update(value=nsfw_action_buttons_html, visible=True)
|
|
@@ -1298,7 +1298,7 @@ def create_app():
|
|
| 1298 |
</h2>
|
| 1299 |
<p style="margin: 0 0 25px 0; font-size: 1.2em; opacity: 0.95; line-height: 1.6;">
|
| 1300 |
Experience the ultimate freedom in AI image creation! Generate and edit unlimited images without restrictions,
|
| 1301 |
-
|
| 1302 |
</p>
|
| 1303 |
|
| 1304 |
<div style="display: flex; justify-content: center; gap: 25px; flex-wrap: wrap; margin: 30px 0;">
|
|
@@ -1355,11 +1355,11 @@ def create_app():
|
|
| 1355 |
|
| 1356 |
<div style="background: white; padding: 30px; border-radius: 15px; box-shadow: 0 5px 20px rgba(0,0,0,0.08); border-left: 5px solid #3498db;">
|
| 1357 |
<h3 style="color: #3498db; margin: 0 0 15px 0; font-size: 1.4em; font-weight: 600;">
|
| 1358 |
-
π
|
| 1359 |
</h3>
|
| 1360 |
<p style="color: #666; margin: 0; line-height: 1.6; font-size: 1em;">
|
| 1361 |
-
Generate and edit any type of content
|
| 1362 |
-
|
| 1363 |
</p>
|
| 1364 |
</div>
|
| 1365 |
|
|
@@ -1417,8 +1417,8 @@ def create_app():
|
|
| 1417 |
</div>
|
| 1418 |
|
| 1419 |
<div style="background: rgba(255,255,255,0.15); padding: 20px; border-radius: 12px;">
|
| 1420 |
-
<h4 style="margin: 0 0 10px 0; font-size: 1.2em;">π
|
| 1421 |
-
<p style="margin: 0; opacity: 0.9; font-size: 0.95em;">Create any type of content
|
| 1422 |
</div>
|
| 1423 |
|
| 1424 |
<div style="background: rgba(255,255,255,0.15); padding: 20px; border-radius: 12px;">
|
|
|
|
| 488 |
blurred_image = apply_gaussian_blur_to_image_url(result_url)
|
| 489 |
if blurred_image is not None:
|
| 490 |
final_result = blurred_image # Return PIL Image object
|
| 491 |
+
final_message = f"β οΈ Content filter applied due to Hugging Face community guidelines. For unlimited creative freedom, visit our official website https://omnicreator.net/#generator"
|
| 492 |
print(f"π Applied Gaussian blur for NSFW content - IP: {client_ip}")
|
| 493 |
else:
|
| 494 |
# Blur failed, return original URL with warning
|
| 495 |
final_result = result_url
|
| 496 |
+
final_message = f"β οΈ Content review required. Please visit https://omnicreator.net/#generator for better experience"
|
| 497 |
|
| 498 |
# Generate NSFW button for blurred content
|
| 499 |
nsfw_action_buttons_html = f"""
|
|
|
|
| 514 |
box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
|
| 515 |
transition: all 0.3s ease;
|
| 516 |
border: none;
|
| 517 |
+
'>π₯ Unlimited Creative Generation</a>
|
| 518 |
</div>
|
| 519 |
"""
|
| 520 |
return final_result, final_message, gr.update(value=nsfw_action_buttons_html, visible=True)
|
|
|
|
| 848 |
blurred_image = apply_gaussian_blur_to_image_url(result_url)
|
| 849 |
if blurred_image is not None:
|
| 850 |
final_result = blurred_image # Return PIL Image object
|
| 851 |
+
final_message = f"β οΈ Content filter applied due to Hugging Face community guidelines. For unlimited creative freedom, visit our official website https://omnicreator.net/#generator"
|
| 852 |
print(f"π Local edit applied Gaussian blur for NSFW content - IP: {client_ip}")
|
| 853 |
else:
|
| 854 |
# Blur failed, return original URL with warning
|
| 855 |
final_result = result_url
|
| 856 |
+
final_message = f"β οΈ Content review required. Please visit https://omnicreator.net/#generator for better experience"
|
| 857 |
|
| 858 |
# Generate NSFW button for blurred content
|
| 859 |
nsfw_action_buttons_html = f"""
|
|
|
|
| 874 |
box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
|
| 875 |
transition: all 0.3s ease;
|
| 876 |
border: none;
|
| 877 |
+
'>π₯ Unlimited Creative Generation</a>
|
| 878 |
</div>
|
| 879 |
"""
|
| 880 |
return final_result, final_message, gr.update(value=nsfw_action_buttons_html, visible=True)
|
|
|
|
| 1298 |
</h2>
|
| 1299 |
<p style="margin: 0 0 25px 0; font-size: 1.2em; opacity: 0.95; line-height: 1.6;">
|
| 1300 |
Experience the ultimate freedom in AI image creation! Generate and edit unlimited images without restrictions,
|
| 1301 |
+
with complete creative freedom and no limits on your imagination with our premium AI image editing platform.
|
| 1302 |
</p>
|
| 1303 |
|
| 1304 |
<div style="display: flex; justify-content: center; gap: 25px; flex-wrap: wrap; margin: 30px 0;">
|
|
|
|
| 1355 |
|
| 1356 |
<div style="background: white; padding: 30px; border-radius: 15px; box-shadow: 0 5px 20px rgba(0,0,0,0.08); border-left: 5px solid #3498db;">
|
| 1357 |
<h3 style="color: #3498db; margin: 0 0 15px 0; font-size: 1.4em; font-weight: 600;">
|
| 1358 |
+
π Creative Freedom
|
| 1359 |
</h3>
|
| 1360 |
<p style="color: #666; margin: 0; line-height: 1.6; font-size: 1em;">
|
| 1361 |
+
Generate and edit any type of content with complete creative freedom and no limits on your imagination.
|
| 1362 |
+
Unlimited possibilities for artists, designers, and content creators.
|
| 1363 |
</p>
|
| 1364 |
</div>
|
| 1365 |
|
|
|
|
| 1417 |
</div>
|
| 1418 |
|
| 1419 |
<div style="background: rgba(255,255,255,0.15); padding: 20px; border-radius: 12px;">
|
| 1420 |
+
<h4 style="margin: 0 0 10px 0; font-size: 1.2em;">π Unlimited Imagination</h4>
|
| 1421 |
+
<p style="margin: 0; opacity: 0.9; font-size: 0.95em;">Create any type of content with complete creative freedom and no limits</p>
|
| 1422 |
</div>
|
| 1423 |
|
| 1424 |
<div style="background: rgba(255,255,255,0.15); padding: 20px; border-radius: 12px;">
|