Spaces:
Runtime error
Runtime error
selfitcamera commited on
Commit ·
55c5937
1
Parent(s): 400fdc3
init
Browse files
app.py
CHANGED
|
@@ -532,6 +532,8 @@ def edit_image_interface(input_image, prompt, request: gr.Request, progress=gr.P
|
|
| 532 |
action_buttons_html = ""
|
| 533 |
if task_uuid:
|
| 534 |
task_detail_url = f"https://omnicreator.net/my-creations/task/{task_uuid}"
|
|
|
|
|
|
|
| 535 |
action_buttons_html = f"""
|
| 536 |
<div style='display: flex; justify-content: center; gap: 15px; margin: 10px 0 5px 0; padding: 0px;'>
|
| 537 |
<a href='{task_detail_url}' target='_blank' style='
|
|
@@ -551,7 +553,7 @@ def edit_image_interface(input_image, prompt, request: gr.Request, progress=gr.P
|
|
| 551 |
transition: all 0.3s ease;
|
| 552 |
border: none;
|
| 553 |
'>🖼 Download HD Image</a>
|
| 554 |
-
<a href='
|
| 555 |
display: inline-flex;
|
| 556 |
align-items: center;
|
| 557 |
justify-content: center;
|
|
@@ -567,7 +569,7 @@ def edit_image_interface(input_image, prompt, request: gr.Request, progress=gr.P
|
|
| 567 |
box-shadow: 0 4px 15px rgba(17, 153, 142, 0.4);
|
| 568 |
transition: all 0.3s ease;
|
| 569 |
border: none;
|
| 570 |
-
'>&#
|
| 571 |
</div>
|
| 572 |
"""
|
| 573 |
|
|
@@ -892,6 +894,8 @@ def local_edit_interface(image_dict, prompt, reference_image, request: gr.Reques
|
|
| 892 |
action_buttons_html = ""
|
| 893 |
if task_uuid:
|
| 894 |
task_detail_url = f"https://omnicreator.net/my-creations/task/{task_uuid}"
|
|
|
|
|
|
|
| 895 |
action_buttons_html = f"""
|
| 896 |
<div style='display: flex; justify-content: center; gap: 15px; margin: 10px 0 5px 0; padding: 0px;'>
|
| 897 |
<a href='{task_detail_url}' target='_blank' style='
|
|
@@ -911,7 +915,7 @@ def local_edit_interface(image_dict, prompt, reference_image, request: gr.Reques
|
|
| 911 |
transition: all 0.3s ease;
|
| 912 |
border: none;
|
| 913 |
'>🖼 Download HD Image</a>
|
| 914 |
-
<a href='
|
| 915 |
display: inline-flex;
|
| 916 |
align-items: center;
|
| 917 |
justify-content: center;
|
|
@@ -927,7 +931,7 @@ def local_edit_interface(image_dict, prompt, reference_image, request: gr.Reques
|
|
| 927 |
box-shadow: 0 4px 15px rgba(17, 153, 142, 0.4);
|
| 928 |
transition: all 0.3s ease;
|
| 929 |
border: none;
|
| 930 |
-
'>&#
|
| 931 |
</div>
|
| 932 |
"""
|
| 933 |
|
|
|
|
| 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 result image
|
| 536 |
+
image_to_video_url = f"https://omnicreator.net/image-to-video?input_image={final_result}"
|
| 537 |
action_buttons_html = f"""
|
| 538 |
<div style='display: flex; justify-content: center; gap: 15px; margin: 10px 0 5px 0; padding: 0px;'>
|
| 539 |
<a href='{task_detail_url}' target='_blank' style='
|
|
|
|
| 553 |
transition: all 0.3s ease;
|
| 554 |
border: none;
|
| 555 |
'>🖼 Download HD Image</a>
|
| 556 |
+
<a href='{image_to_video_url}' target='_blank' style='
|
| 557 |
display: inline-flex;
|
| 558 |
align-items: center;
|
| 559 |
justify-content: center;
|
|
|
|
| 569 |
box-shadow: 0 4px 15px rgba(17, 153, 142, 0.4);
|
| 570 |
transition: all 0.3s ease;
|
| 571 |
border: none;
|
| 572 |
+
'>🎥 Turn Image to Video</a>
|
| 573 |
</div>
|
| 574 |
"""
|
| 575 |
|
|
|
|
| 894 |
action_buttons_html = ""
|
| 895 |
if task_uuid:
|
| 896 |
task_detail_url = f"https://omnicreator.net/my-creations/task/{task_uuid}"
|
| 897 |
+
# Create image-to-video URL with result image
|
| 898 |
+
image_to_video_url = f"https://omnicreator.net/image-to-video?input_image={final_result}"
|
| 899 |
action_buttons_html = f"""
|
| 900 |
<div style='display: flex; justify-content: center; gap: 15px; margin: 10px 0 5px 0; padding: 0px;'>
|
| 901 |
<a href='{task_detail_url}' target='_blank' style='
|
|
|
|
| 915 |
transition: all 0.3s ease;
|
| 916 |
border: none;
|
| 917 |
'>🖼 Download HD Image</a>
|
| 918 |
+
<a href='{image_to_video_url}' target='_blank' style='
|
| 919 |
display: inline-flex;
|
| 920 |
align-items: center;
|
| 921 |
justify-content: center;
|
|
|
|
| 931 |
box-shadow: 0 4px 15px rgba(17, 153, 142, 0.4);
|
| 932 |
transition: all 0.3s ease;
|
| 933 |
border: none;
|
| 934 |
+
'>🎥 Turn Image to Video</a>
|
| 935 |
</div>
|
| 936 |
"""
|
| 937 |
|