Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -105,7 +105,7 @@ def generate(
|
|
| 105 |
media,
|
| 106 |
selected,
|
| 107 |
seed: Optional[int] = -1,
|
| 108 |
-
num_inference_steps: int =
|
| 109 |
animatediff_batch_size: int = 32,
|
| 110 |
animatediff_stride: int = 16,
|
| 111 |
motion_bucket_id: int = 127,
|
|
@@ -145,9 +145,7 @@ def generate(
|
|
| 145 |
up_video = VideoData(
|
| 146 |
video_file=media,
|
| 147 |
height=512, width=512)
|
| 148 |
-
|
| 149 |
-
print(len(up_video))
|
| 150 |
-
input_video = [up_video[i] for i in range(1, len(up_video))]
|
| 151 |
|
| 152 |
video = pipe2(
|
| 153 |
prompt=prompt,
|
|
@@ -206,7 +204,7 @@ with gr.Blocks(css=CSS, js=JS, theme="soft") as demo:
|
|
| 206 |
label="Inference steps",
|
| 207 |
info="Inference steps",
|
| 208 |
step=1,
|
| 209 |
-
value=
|
| 210 |
minimum=1,
|
| 211 |
maximum=50
|
| 212 |
)
|
|
|
|
| 105 |
media,
|
| 106 |
selected,
|
| 107 |
seed: Optional[int] = -1,
|
| 108 |
+
num_inference_steps: int = 5,
|
| 109 |
animatediff_batch_size: int = 32,
|
| 110 |
animatediff_stride: int = 16,
|
| 111 |
motion_bucket_id: int = 127,
|
|
|
|
| 145 |
up_video = VideoData(
|
| 146 |
video_file=media,
|
| 147 |
height=512, width=512)
|
| 148 |
+
input_video = [up_video[i] for i in range(1, 30)]
|
|
|
|
|
|
|
| 149 |
|
| 150 |
video = pipe2(
|
| 151 |
prompt=prompt,
|
|
|
|
| 204 |
label="Inference steps",
|
| 205 |
info="Inference steps",
|
| 206 |
step=1,
|
| 207 |
+
value=5,
|
| 208 |
minimum=1,
|
| 209 |
maximum=50
|
| 210 |
)
|