Spaces:
Running
Running
selfitcamera
commited on
Commit
·
b922f1a
1
Parent(s):
2d40f5a
init
Browse files
app.py
CHANGED
|
@@ -540,7 +540,7 @@ def edit_image_interface(input_image, prompt, lang, request: gr.Request, progres
|
|
| 540 |
# Check if completely blocked
|
| 541 |
if current_phase == 'blocked':
|
| 542 |
# Generate blocked limit button with different URL for restricted countries
|
| 543 |
-
if is_restricted:
|
| 544 |
blocked_url = GoodWebsiteUrl
|
| 545 |
else:
|
| 546 |
blocked_url = 'https://omnicreator.net/#generator'
|
|
@@ -578,7 +578,7 @@ def edit_image_interface(input_image, prompt, lang, request: gr.Request, progres
|
|
| 578 |
if is_limited:
|
| 579 |
wait_minutes_int = int(wait_minutes) + 1
|
| 580 |
# Generate rate limit button with different URL for restricted countries
|
| 581 |
-
if is_restricted:
|
| 582 |
rate_limit_url = GoodWebsiteUrl
|
| 583 |
else:
|
| 584 |
rate_limit_url = 'https://omnicreator.net/#generator'
|
|
@@ -740,7 +740,7 @@ def edit_image_interface(input_image, prompt, lang, request: gr.Request, progres
|
|
| 740 |
final_message = t("warning_content_review", lang)
|
| 741 |
|
| 742 |
# Generate NSFW button for blurred content with different URL for restricted countries
|
| 743 |
-
if is_restricted:
|
| 744 |
nsfw_url = GoodWebsiteUrl
|
| 745 |
else:
|
| 746 |
nsfw_url = 'https://omnicreator.net/#generator'
|
|
|
|
| 540 |
# Check if completely blocked
|
| 541 |
if current_phase == 'blocked':
|
| 542 |
# Generate blocked limit button with different URL for restricted countries
|
| 543 |
+
if is_restricted or lang in ["hi", "ru", "zh"]:
|
| 544 |
blocked_url = GoodWebsiteUrl
|
| 545 |
else:
|
| 546 |
blocked_url = 'https://omnicreator.net/#generator'
|
|
|
|
| 578 |
if is_limited:
|
| 579 |
wait_minutes_int = int(wait_minutes) + 1
|
| 580 |
# Generate rate limit button with different URL for restricted countries
|
| 581 |
+
if is_restricted or lang in ["hi", "ru", "zh"]:
|
| 582 |
rate_limit_url = GoodWebsiteUrl
|
| 583 |
else:
|
| 584 |
rate_limit_url = 'https://omnicreator.net/#generator'
|
|
|
|
| 740 |
final_message = t("warning_content_review", lang)
|
| 741 |
|
| 742 |
# Generate NSFW button for blurred content with different URL for restricted countries
|
| 743 |
+
if is_restricted or lang in ["hi", "ru", "zh"]:
|
| 744 |
nsfw_url = GoodWebsiteUrl
|
| 745 |
else:
|
| 746 |
nsfw_url = 'https://omnicreator.net/#generator'
|