Skip to content

Commit

Permalink
should be >=
Browse files Browse the repository at this point in the history
  • Loading branch information
hkchengrex committed Dec 22, 2024
1 parent 7ab89c2 commit 8624361
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gradio_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def video_to_audio(video: gr.Video, prompt: str, negative_prompt: str, seed: int
cfg_strength: float, duration: float):

rng = torch.Generator(device=device)
if seed > 0:
if seed >= 0:
rng.manual_seed(seed)
else:
rng.seed()
Expand Down Expand Up @@ -91,7 +91,7 @@ def text_to_audio(prompt: str, negative_prompt: str, seed: int, num_steps: int,
duration: float):

rng = torch.Generator(device=device)
if seed > 0:
if seed >= 0:
rng.manual_seed(seed)
else:
rng.seed()
Expand Down

0 comments on commit 8624361

Please sign in to comment.