Spaces:
Paused
Paused
test gradio
Browse files
app.py
CHANGED
@@ -3,6 +3,7 @@ from huggingface_hub import login
|
|
3 |
import os
|
4 |
import spaces,tempfile
|
5 |
import torch
|
|
|
6 |
from diffusers import AnimateDiffSparseControlNetPipeline
|
7 |
from diffusers.models import AutoencoderKL, MotionAdapter, SparseControlNetModel
|
8 |
from diffusers.schedulers import DPMSolverMultistepScheduler
|
@@ -121,7 +122,7 @@ This way, each frame represents a distinct scene, and there’s no redundancy be
|
|
121 |
conditioning_frames=conditioning_frames,
|
122 |
controlnet_frame_indices=controlnet_frame_indices,
|
123 |
controlnet_conditioning_scale=float(controlnet_conditioning_scale),
|
124 |
-
num_frames=num_frames
|
125 |
).frames[0]
|
126 |
export_to_gif(video, "output.gif")
|
127 |
|
|
|
3 |
import os
|
4 |
import spaces,tempfile
|
5 |
import torch
|
6 |
+
|
7 |
from diffusers import AnimateDiffSparseControlNetPipeline
|
8 |
from diffusers.models import AutoencoderKL, MotionAdapter, SparseControlNetModel
|
9 |
from diffusers.schedulers import DPMSolverMultistepScheduler
|
|
|
122 |
conditioning_frames=conditioning_frames,
|
123 |
controlnet_frame_indices=controlnet_frame_indices,
|
124 |
controlnet_conditioning_scale=float(controlnet_conditioning_scale),
|
125 |
+
num_frames=int(num_frames)
|
126 |
).frames[0]
|
127 |
export_to_gif(video, "output.gif")
|
128 |
|