Update app.py
Browse files
app.py
CHANGED
@@ -525,7 +525,7 @@ def generate_share_links(image_base64, video_base64, caption):
|
|
525 |
font-size: 14px;
|
526 |
font-weight: bold;
|
527 |
transition: background-color 0.3s;
|
528 |
-
" onmouseover="this
|
529 |
<a href="https://www.instagram.com/?caption={caption}" target="_blank" style="
|
530 |
background-color: #e1306c;
|
531 |
color: white;
|
@@ -817,15 +817,13 @@ with gr.Blocks(
|
|
817 |
user_input.submit(
|
818 |
fn=start_feed,
|
819 |
inputs=[user_input, generate_video_checkbox, current_index, feed_items],
|
820 |
-
outputs=[current_user_input, current_index, feed_items, feed_html, share_html, is_loading]
|
821 |
-
_js="() => { return { stream: true }; }"
|
822 |
)
|
823 |
|
824 |
magic_button.click(
|
825 |
fn=load_next,
|
826 |
inputs=[user_input, generate_video_checkbox, current_index, feed_items],
|
827 |
-
outputs=[current_user_input, current_index, feed_items, feed_html, share_html, is_loading]
|
828 |
-
_js="() => { return { stream: true }; }"
|
829 |
)
|
830 |
|
831 |
previous_button = gr.Button("Previous", elem_id="previous-button", visible=False)
|
|
|
525 |
font-size: 14px;
|
526 |
font-weight: bold;
|
527 |
transition: background-color 0.3s;
|
528 |
+
" onmouseover="this стиле.backgroundColor='#00d9d1'" onmouseout="this.style.backgroundColor='#00f2ea'">Share on TikTok</a>
|
529 |
<a href="https://www.instagram.com/?caption={caption}" target="_blank" style="
|
530 |
background-color: #e1306c;
|
531 |
color: white;
|
|
|
817 |
user_input.submit(
|
818 |
fn=start_feed,
|
819 |
inputs=[user_input, generate_video_checkbox, current_index, feed_items],
|
820 |
+
outputs=[current_user_input, current_index, feed_items, feed_html, share_html, is_loading]
|
|
|
821 |
)
|
822 |
|
823 |
magic_button.click(
|
824 |
fn=load_next,
|
825 |
inputs=[user_input, generate_video_checkbox, current_index, feed_items],
|
826 |
+
outputs=[current_user_input, current_index, feed_items, feed_html, share_html, is_loading]
|
|
|
827 |
)
|
828 |
|
829 |
previous_button = gr.Button("Previous", elem_id="previous-button", visible=False)
|