vilarin commited on
Commit
83f18c9
·
verified ·
1 Parent(s): 7cb47a7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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: 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(Image)
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