abidlabs HF staff commited on
Commit
969ff5a
1 Parent(s): 428434e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -41,6 +41,9 @@ def to_video(frames: list[np.ndarray], fps: int) -> str:
41
 
42
  def generate(prompt: str, seed: int, num_frames: int,
43
  num_inference_steps: int) -> str:
 
 
 
44
  if seed == -1:
45
  seed = random.randint(0, 1000000)
46
  generator = torch.Generator().manual_seed(seed)
 
41
 
42
  def generate(prompt: str, seed: int, num_frames: int,
43
  num_inference_steps: int) -> str:
44
+ seed = int(seed)
45
+ num_frames = int(num_frames)
46
+ num_inference_steps = int(num_inference_steps)
47
  if seed == -1:
48
  seed = random.randint(0, 1000000)
49
  generator = torch.Generator().manual_seed(seed)