Update app.py
Browse files
app.py
CHANGED
@@ -608,6 +608,7 @@ def load_previous(user_input, generate_video, current_index, feed_items):
|
|
608 |
def generate_share_links(image_base64, video_base64, caption):
|
609 |
"""
|
610 |
Generate share links for social media platforms with download links for image and video.
|
|
|
611 |
|
612 |
Args:
|
613 |
image_base64 (str): The base64-encoded image data.
|
@@ -651,7 +652,14 @@ def generate_share_links(image_base64, video_base64, caption):
|
|
651 |
"""
|
652 |
download_links += "</div>"
|
653 |
|
654 |
-
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
655 |
share_links = """
|
656 |
<div style="
|
657 |
display: flex;
|
@@ -746,6 +754,7 @@ def generate_share_links(image_base64, video_base64, caption):
|
|
746 |
font-family: Arial, sans-serif;
|
747 |
">
|
748 |
{download_links}
|
|
|
749 |
{share_links}
|
750 |
{youtube_share}
|
751 |
</div>
|
|
|
608 |
def generate_share_links(image_base64, video_base64, caption):
|
609 |
"""
|
610 |
Generate share links for social media platforms with download links for image and video.
|
611 |
+
Share links only include the caption, and users are instructed to manually upload the media.
|
612 |
|
613 |
Args:
|
614 |
image_base64 (str): The base64-encoded image data.
|
|
|
652 |
"""
|
653 |
download_links += "</div>"
|
654 |
|
655 |
+
# Instruction for users
|
656 |
+
instruction = """
|
657 |
+
<p style="text-align: center; margin-bottom: 10px;">
|
658 |
+
Click a share button below to start a post with the caption, then manually upload the downloaded image or video.
|
659 |
+
</p>
|
660 |
+
"""
|
661 |
+
|
662 |
+
# Generate share links for social media platforms (only passing the caption)
|
663 |
share_links = """
|
664 |
<div style="
|
665 |
display: flex;
|
|
|
754 |
font-family: Arial, sans-serif;
|
755 |
">
|
756 |
{download_links}
|
757 |
+
{instruction}
|
758 |
{share_links}
|
759 |
{youtube_share}
|
760 |
</div>
|