amos1088 commited on
Commit
30aad9d
·
1 Parent(s): dd5a092

test gradio

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -112,6 +112,7 @@ This way, each frame represents a distinct scene, and there’s no redundancy be
112
  for frame in frames:
113
  conditioning_frames.append(generate_image(frame['description'], reference_image, float(style_conditioning_scale)))
114
  controlnet_frame_indices.append(frame['frame_index'])
 
115
 
116
  video = gif_pipe(
117
  prompt=prompt,
@@ -124,7 +125,7 @@ This way, each frame represents a distinct scene, and there’s no redundancy be
124
  ).frames[0]
125
  export_to_gif(video, "output.gif")
126
 
127
- return (conditioning_frames, "animation.gif")
128
 
129
  # Set up Gradio interface
130
  interface = gr.Interface(
 
112
  for frame in frames:
113
  conditioning_frames.append(generate_image(frame['description'], reference_image, float(style_conditioning_scale)))
114
  controlnet_frame_indices.append(frame['frame_index'])
115
+ yield (conditioning_frames, "animation.gif")
116
 
117
  video = gif_pipe(
118
  prompt=prompt,
 
125
  ).frames[0]
126
  export_to_gif(video, "output.gif")
127
 
128
+ yield (conditioning_frames, "output.gif")
129
 
130
  # Set up Gradio interface
131
  interface = gr.Interface(