Spaces:
Runtime error
Runtime error
Update
Browse files
app.py
CHANGED
@@ -57,7 +57,7 @@ def generate_image(prompt, base, motion, step, progress=gr.Progress()):
|
|
57 |
def progress_callback(i, t, z):
|
58 |
progress((i+1, step))
|
59 |
|
60 |
-
output = pipe(prompt=prompt, guidance_scale=1.0, num_inference_steps=step, callback=progress_callback)
|
61 |
name = str(uuid.uuid4()).replace("-", "")
|
62 |
path = f"/tmp/{name}.mp4"
|
63 |
export_to_video(output.frames[0], path, fps=10)
|
|
|
57 |
def progress_callback(i, t, z):
|
58 |
progress((i+1, step))
|
59 |
|
60 |
+
output = pipe(prompt=prompt, guidance_scale=1.0, num_inference_steps=step, callback=progress_callback, callback_steps=1)
|
61 |
name = str(uuid.uuid4()).replace("-", "")
|
62 |
path = f"/tmp/{name}.mp4"
|
63 |
export_to_video(output.frames[0], path, fps=10)
|