Spaces:
Running
Running
Commit
·
efbbd95
1
Parent(s):
f7d53f5
init
Browse files
app.py
CHANGED
|
@@ -531,7 +531,6 @@ def edit_image_interface(input_image, prompt, request: gr.Request, progress=gr.P
|
|
| 531 |
# Generate action buttons HTML like Trump AI Voice
|
| 532 |
action_buttons_html = ""
|
| 533 |
if task_uuid:
|
| 534 |
-
task_detail_url = f"https://omnicreator.net/my-creations/task/{task_uuid}"
|
| 535 |
# Create image-to-video URL with input image, end image, and prompt
|
| 536 |
from urllib.parse import quote
|
| 537 |
# Use result URL as end_image, original upload URL as input_image
|
|
@@ -539,7 +538,7 @@ def edit_image_interface(input_image, prompt, request: gr.Request, progress=gr.P
|
|
| 539 |
image_to_video_url = f"https://omnicreator.net/image-to-video?input_image={input_image_url}&end_image={result_url}&prompt={encoded_prompt}"
|
| 540 |
action_buttons_html = f"""
|
| 541 |
<div style='display: flex; justify-content: center; gap: 15px; margin: 10px 0 5px 0; padding: 0px;'>
|
| 542 |
-
<a href='
|
| 543 |
display: inline-flex;
|
| 544 |
align-items: center;
|
| 545 |
justify-content: center;
|
|
@@ -555,7 +554,7 @@ def edit_image_interface(input_image, prompt, request: gr.Request, progress=gr.P
|
|
| 555 |
box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
|
| 556 |
transition: all 0.3s ease;
|
| 557 |
border: none;
|
| 558 |
-
'>&#
|
| 559 |
<a href='{image_to_video_url}' target='_blank' style='
|
| 560 |
display: inline-flex;
|
| 561 |
align-items: center;
|
|
@@ -896,7 +895,6 @@ def local_edit_interface(image_dict, prompt, reference_image, request: gr.Reques
|
|
| 896 |
# Generate action buttons HTML like Trump AI Voice
|
| 897 |
action_buttons_html = ""
|
| 898 |
if task_uuid:
|
| 899 |
-
task_detail_url = f"https://omnicreator.net/my-creations/task/{task_uuid}"
|
| 900 |
# Create image-to-video URL with input image, end image, and prompt
|
| 901 |
from urllib.parse import quote
|
| 902 |
# Use result URL as end_image, original upload URL as input_image
|
|
@@ -904,7 +902,7 @@ def local_edit_interface(image_dict, prompt, reference_image, request: gr.Reques
|
|
| 904 |
image_to_video_url = f"https://omnicreator.net/image-to-video?input_image={input_image_url}&end_image={result_url}&prompt={encoded_prompt}"
|
| 905 |
action_buttons_html = f"""
|
| 906 |
<div style='display: flex; justify-content: center; gap: 15px; margin: 10px 0 5px 0; padding: 0px;'>
|
| 907 |
-
<a href='
|
| 908 |
display: inline-flex;
|
| 909 |
align-items: center;
|
| 910 |
justify-content: center;
|
|
@@ -920,7 +918,7 @@ def local_edit_interface(image_dict, prompt, reference_image, request: gr.Reques
|
|
| 920 |
box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
|
| 921 |
transition: all 0.3s ease;
|
| 922 |
border: none;
|
| 923 |
-
'>&#
|
| 924 |
<a href='{image_to_video_url}' target='_blank' style='
|
| 925 |
display: inline-flex;
|
| 926 |
align-items: center;
|
|
|
|
| 531 |
# Generate action buttons HTML like Trump AI Voice
|
| 532 |
action_buttons_html = ""
|
| 533 |
if task_uuid:
|
|
|
|
| 534 |
# Create image-to-video URL with input image, end image, and prompt
|
| 535 |
from urllib.parse import quote
|
| 536 |
# Use result URL as end_image, original upload URL as input_image
|
|
|
|
| 538 |
image_to_video_url = f"https://omnicreator.net/image-to-video?input_image={input_image_url}&end_image={result_url}&prompt={encoded_prompt}"
|
| 539 |
action_buttons_html = f"""
|
| 540 |
<div style='display: flex; justify-content: center; gap: 15px; margin: 10px 0 5px 0; padding: 0px;'>
|
| 541 |
+
<a href='https://omnicreator.net/#generator' target='_blank' style='
|
| 542 |
display: inline-flex;
|
| 543 |
align-items: center;
|
| 544 |
justify-content: center;
|
|
|
|
| 554 |
box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
|
| 555 |
transition: all 0.3s ease;
|
| 556 |
border: none;
|
| 557 |
+
'>🚀 Unlimited Generation</a>
|
| 558 |
<a href='{image_to_video_url}' target='_blank' style='
|
| 559 |
display: inline-flex;
|
| 560 |
align-items: center;
|
|
|
|
| 895 |
# Generate action buttons HTML like Trump AI Voice
|
| 896 |
action_buttons_html = ""
|
| 897 |
if task_uuid:
|
|
|
|
| 898 |
# Create image-to-video URL with input image, end image, and prompt
|
| 899 |
from urllib.parse import quote
|
| 900 |
# Use result URL as end_image, original upload URL as input_image
|
|
|
|
| 902 |
image_to_video_url = f"https://omnicreator.net/image-to-video?input_image={input_image_url}&end_image={result_url}&prompt={encoded_prompt}"
|
| 903 |
action_buttons_html = f"""
|
| 904 |
<div style='display: flex; justify-content: center; gap: 15px; margin: 10px 0 5px 0; padding: 0px;'>
|
| 905 |
+
<a href='https://omnicreator.net/local-inpaint' target='_blank' style='
|
| 906 |
display: inline-flex;
|
| 907 |
align-items: center;
|
| 908 |
justify-content: center;
|
|
|
|
| 918 |
box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
|
| 919 |
transition: all 0.3s ease;
|
| 920 |
border: none;
|
| 921 |
+
'>🚀 Unlimited Generation</a>
|
| 922 |
<a href='{image_to_video_url}' target='_blank' style='
|
| 923 |
display: inline-flex;
|
| 924 |
align-items: center;
|