Skip to content

Commit

Permalink
fix seed = 0
Browse files Browse the repository at this point in the history
  • Loading branch information
bghira committed Apr 18, 2024
1 parent fe8a724 commit 956a7ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion discord_tron_master/classes/stabilityai/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def generate_image(self, prompt: str, user_config: dict, output_format: str = "p
}
if model != "sd3-turbo":
arguments["negative_prompt"] = user_config.get("negative_prompt", "")
if seed != 0:
if seed >= 0:
arguments["seed"] = seed
response = requests.post(
self.base_url,
Expand Down

0 comments on commit 956a7ae

Please sign in to comment.