Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
app.py
CHANGED
@@ -173,8 +173,9 @@ with gr.Blocks(theme=gr.themes.Citrus(), css=css) as demo:
|
|
173 |
output_image = gr.Image(label="Output", interactive=False, elem_id="output", type="filepath")
|
174 |
use_image_button = gr.Button("♻️ Use this Image for Next Edit")
|
175 |
create_video_button = gr.Button("Create a video between the two 🎥", variant="primary", visible=False)
|
176 |
-
|
177 |
-
|
|
|
178 |
gr.Markdown("## Thank you for being a PRO! 🤗")
|
179 |
|
180 |
login_button = gr.LoginButton()
|
@@ -184,11 +185,11 @@ with gr.Blocks(theme=gr.themes.Citrus(), css=css) as demo:
|
|
184 |
triggers=[generate_button.click, prompt_input.submit],
|
185 |
fn=lambda: [gr.update(visible=False), gr.update(visible=False)],
|
186 |
inputs=[],
|
187 |
-
outputs=[create_video_button,
|
188 |
).then(
|
189 |
fn=unified_image_generator,
|
190 |
inputs=[prompt_input, image_input_gallery],
|
191 |
-
outputs=[output_image, create_video_button,
|
192 |
)
|
193 |
|
194 |
use_image_button.click(
|
@@ -201,7 +202,7 @@ with gr.Blocks(theme=gr.themes.Citrus(), css=css) as demo:
|
|
201 |
create_video_button.click(
|
202 |
fn=lambda: gr.update(visible=True),
|
203 |
inputs=[],
|
204 |
-
outputs=[
|
205 |
).then(
|
206 |
fn=create_video_transition,
|
207 |
inputs=[image_input_gallery, output_image],
|
|
|
173 |
output_image = gr.Image(label="Output", interactive=False, elem_id="output", type="filepath")
|
174 |
use_image_button = gr.Button("♻️ Use this Image for Next Edit")
|
175 |
create_video_button = gr.Button("Create a video between the two 🎥", variant="primary", visible=False)
|
176 |
+
with gr.Group(visible=False) as video_group:
|
177 |
+
video_output = gr.Video(label="Generated Video", show_download_button=True)
|
178 |
+
gr.Markdown("Video Generated by [Wan 2.2 first-last-frame](https://huggingface.co/spaces/multimodalart/wan-2-2-first-last-frame)")
|
179 |
gr.Markdown("## Thank you for being a PRO! 🤗")
|
180 |
|
181 |
login_button = gr.LoginButton()
|
|
|
185 |
triggers=[generate_button.click, prompt_input.submit],
|
186 |
fn=lambda: [gr.update(visible=False), gr.update(visible=False)],
|
187 |
inputs=[],
|
188 |
+
outputs=[create_video_button, video_group],
|
189 |
).then(
|
190 |
fn=unified_image_generator,
|
191 |
inputs=[prompt_input, image_input_gallery],
|
192 |
+
outputs=[output_image, create_video_button, video_group],
|
193 |
)
|
194 |
|
195 |
use_image_button.click(
|
|
|
202 |
create_video_button.click(
|
203 |
fn=lambda: gr.update(visible=True),
|
204 |
inputs=[],
|
205 |
+
outputs=[video_group],
|
206 |
).then(
|
207 |
fn=create_video_transition,
|
208 |
inputs=[image_input_gallery, output_image],
|