From 862436112088d21a5732d74b5907170945ffebde Mon Sep 17 00:00:00 2001 From: Rex Cheng Date: Sun, 22 Dec 2024 00:50:45 -0600 Subject: [PATCH] should be >= --- gradio_demo.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gradio_demo.py b/gradio_demo.py index bde0885..e055682 100644 --- a/gradio_demo.py +++ b/gradio_demo.py @@ -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() @@ -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()