Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -49,7 +49,7 @@ if torch.cuda.is_available():
|
|
49 |
# function source codes modified from multimodalart/stable-video-diffusion
|
50 |
@spaces.GPU(duration=120)
|
51 |
def generate(
|
52 |
-
image:
|
53 |
seed: Optional[int] = -1,
|
54 |
motion_bucket_id: int = 127,
|
55 |
fps_id: int = 25,
|
@@ -59,7 +59,7 @@ def generate(
|
|
59 |
if seed == -1:
|
60 |
seed = random.randint(0, MAX_SEED)
|
61 |
|
62 |
-
image = Image.open(
|
63 |
if image.mode == "RGBA":
|
64 |
image = image.convert("RGB")
|
65 |
|
|
|
49 |
# function source codes modified from multimodalart/stable-video-diffusion
|
50 |
@spaces.GPU(duration=120)
|
51 |
def generate(
|
52 |
+
image: image,
|
53 |
seed: Optional[int] = -1,
|
54 |
motion_bucket_id: int = 127,
|
55 |
fps_id: int = 25,
|
|
|
59 |
if seed == -1:
|
60 |
seed = random.randint(0, MAX_SEED)
|
61 |
|
62 |
+
image = Image.open(image)
|
63 |
if image.mode == "RGBA":
|
64 |
image = image.convert("RGB")
|
65 |
|