Spaces:
Paused
Paused
test gradio
Browse files
app.py
CHANGED
@@ -144,7 +144,7 @@ This way, each frame represents a distinct scene, and there’s no redundancy be
|
|
144 |
conditioning_frames = []
|
145 |
controlnet_frame_indices =[]
|
146 |
for frame in frames:
|
147 |
-
conditioning_frames.append(generate_image(frame['description'], reference_image, controlnet_conditioning_scale))
|
148 |
controlnet_frame_indices.append(frame['frame_index'])
|
149 |
|
150 |
video = gif_pipe(
|
@@ -153,7 +153,7 @@ This way, each frame represents a distinct scene, and there’s no redundancy be
|
|
153 |
num_inference_steps=25,
|
154 |
conditioning_frames=conditioning_frames,
|
155 |
controlnet_frame_indices=controlnet_frame_indices,
|
156 |
-
controlnet_conditioning_scale=controlnet_conditioning_scale,
|
157 |
).frames[0]
|
158 |
export_to_gif(video, "output.gif")
|
159 |
|
@@ -178,7 +178,7 @@ This way, each frame represents a distinct scene, and there’s no redundancy be
|
|
178 |
|
179 |
# Set up Gradio interface
|
180 |
interface = gr.Interface(
|
181 |
-
fn=
|
182 |
inputs=[
|
183 |
gr.Textbox(label="Prompt"),
|
184 |
# gr.Image( type= "filepath",label="Reference Image (Style)"),
|
|
|
144 |
conditioning_frames = []
|
145 |
controlnet_frame_indices =[]
|
146 |
for frame in frames:
|
147 |
+
conditioning_frames.append(generate_image(frame['description'], reference_image, float(controlnet_conditioning_scale)))
|
148 |
controlnet_frame_indices.append(frame['frame_index'])
|
149 |
|
150 |
video = gif_pipe(
|
|
|
153 |
num_inference_steps=25,
|
154 |
conditioning_frames=conditioning_frames,
|
155 |
controlnet_frame_indices=controlnet_frame_indices,
|
156 |
+
controlnet_conditioning_scale=float(controlnet_conditioning_scale),
|
157 |
).frames[0]
|
158 |
export_to_gif(video, "output.gif")
|
159 |
|
|
|
178 |
|
179 |
# Set up Gradio interface
|
180 |
interface = gr.Interface(
|
181 |
+
fn=generate_frames,
|
182 |
inputs=[
|
183 |
gr.Textbox(label="Prompt"),
|
184 |
# gr.Image( type= "filepath",label="Reference Image (Style)"),
|