Spaces:
Sleeping
Sleeping
neew
Browse files
app.py
CHANGED
|
@@ -20,13 +20,13 @@ pipe = DiffusionPipeline.from_pretrained(
|
|
| 20 |
torch_dtype=torch_dtype,
|
| 21 |
trust_remote_code=True,
|
| 22 |
use_auth_token=token
|
| 23 |
-
).to("cuda"
|
| 24 |
|
| 25 |
# Enable memory-saving features
|
| 26 |
pipe.enable_attention_slicing()
|
| 27 |
|
| 28 |
# Generation function
|
| 29 |
-
def generate_video(image, prompt, num_frames=16, steps=
|
| 30 |
output = pipe(
|
| 31 |
prompt=prompt,
|
| 32 |
image=image,
|
|
|
|
| 20 |
torch_dtype=torch_dtype,
|
| 21 |
trust_remote_code=True,
|
| 22 |
use_auth_token=token
|
| 23 |
+
).to("cuda")
|
| 24 |
|
| 25 |
# Enable memory-saving features
|
| 26 |
pipe.enable_attention_slicing()
|
| 27 |
|
| 28 |
# Generation function
|
| 29 |
+
def generate_video(image, prompt, num_frames=16, steps=25, guidance_scale=7.5):
|
| 30 |
output = pipe(
|
| 31 |
prompt=prompt,
|
| 32 |
image=image,
|