Skip to content

Commit

Permalink
Add # nosec B311 for random image/video seed
Browse files Browse the repository at this point in the history
  • Loading branch information
bigadsoleiman committed Dec 3, 2024
1 parent 6a7a9be commit e1fe3cf
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def generate_image(
"width": 1280,
"height": 768,
"cfgScale": 7.0,
"seed": model_kwargs.get("seed", randint(0, 2147483646)),
"seed": model_kwargs.get("seed", randint(0, 2147483646)), # nosec B311
},
}
logger.info(
Expand Down Expand Up @@ -236,7 +236,7 @@ def generate_video(
"durationSeconds": 6,
"fps": 24,
"dimension": "1280x720",
"seed": model_kwargs.get("seed", randint(0, 2147483646)),
"seed": model_kwargs.get("seed", randint(0, 2147483646)), # nosec B311
},
}
logger.info("Model input", model_input=model_input)
Expand Down

0 comments on commit e1fe3cf

Please sign in to comment.