Update app.py
Browse files
app.py
CHANGED
|
@@ -157,13 +157,13 @@ def generate_video(prompt, first_image_path, last_image_path, duration_seconds,
|
|
| 157 |
vaedecode_8 = vaedecode.decode(samples=get_value_at_index(ksampleradvanced_102, 0), vae=get_value_at_index(vaeloader_39, 0))
|
| 158 |
createvideo_104 = createvideo.create_video(fps=16, images=get_value_at_index(vaedecode_8, 0))
|
| 159 |
savevideo_103 = savevideo.save_video(filename_prefix="ComfyUI_Video", format="mp4", codec="h264", video=get_value_at_index(createvideo_104, 0))
|
| 160 |
-
|
| 161 |
return f"output/{savevideo_103['ui']['videos'][0]['filename']}"
|
| 162 |
|
| 163 |
# --- Gradio Interface ---
|
| 164 |
with gr.Blocks() as app:
|
| 165 |
-
gr.Markdown("# Wan 2.2 First/Last Frame
|
| 166 |
-
gr.Markdown("
|
| 167 |
with gr.Row():
|
| 168 |
with gr.Column(scale=1):
|
| 169 |
prompt_input = gr.Textbox(label="Prompt", value="a man dancing in the street, cinematic")
|
|
|
|
| 157 |
vaedecode_8 = vaedecode.decode(samples=get_value_at_index(ksampleradvanced_102, 0), vae=get_value_at_index(vaeloader_39, 0))
|
| 158 |
createvideo_104 = createvideo.create_video(fps=16, images=get_value_at_index(vaedecode_8, 0))
|
| 159 |
savevideo_103 = savevideo.save_video(filename_prefix="ComfyUI_Video", format="mp4", codec="h264", video=get_value_at_index(createvideo_104, 0))
|
| 160 |
+
print(savevideo_103)
|
| 161 |
return f"output/{savevideo_103['ui']['videos'][0]['filename']}"
|
| 162 |
|
| 163 |
# --- Gradio Interface ---
|
| 164 |
with gr.Blocks() as app:
|
| 165 |
+
gr.Markdown("# Wan 2.2 First/Last Frame Video Fast")
|
| 166 |
+
gr.Markdown("Running the [Wan 2.2 First/Last Frame ComfyUI workflow](https://www.reddit.com/r/StableDiffusion/comments/1me4306/psa_wan_22_does_first_frame_last_frame_out_of_the/) on ZeroGPU")
|
| 167 |
with gr.Row():
|
| 168 |
with gr.Column(scale=1):
|
| 169 |
prompt_input = gr.Textbox(label="Prompt", value="a man dancing in the street, cinematic")
|