Spaces:
Paused
Paused
test gradio
Browse files
app.py
CHANGED
@@ -108,10 +108,10 @@ This way, each frame represents a distinct scene, and there’s no redundancy be
|
|
108 |
frames = ask_gpt(massage_history,return_str=False)['frames']
|
109 |
conditioning_frames = []
|
110 |
controlnet_frame_indices =[]
|
|
|
111 |
for frame in frames:
|
112 |
conditioning_frames.append(generate_image(frame['description'], reference_image, float(style_conditioning_scale)))
|
113 |
controlnet_frame_indices.append(frame['frame_index'])
|
114 |
-
yield (conditioning_frames, "animation.gif")
|
115 |
|
116 |
video = gif_pipe(
|
117 |
prompt=prompt,
|
@@ -124,7 +124,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 |
-
|
128 |
|
129 |
# Set up Gradio interface
|
130 |
interface = gr.Interface(
|
|
|
108 |
frames = ask_gpt(massage_history,return_str=False)['frames']
|
109 |
conditioning_frames = []
|
110 |
controlnet_frame_indices =[]
|
111 |
+
frames = frames[0]
|
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 |
).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(
|