multimodalart HF Staff commited on
Commit
e228b81
·
verified ·
1 Parent(s): b5eda46

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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 to Video")
166
- gr.Markdown("Provide a starting image, an ending image, a text prompt, and a desired duration to generate a video transitioning between them.")
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")