From fb1d72a6d19538fe5ea3e6c68d590a5538e204ec Mon Sep 17 00:00:00 2001 From: evelynmitchell Date: Wed, 14 Feb 2024 16:58:50 -0700 Subject: [PATCH] flake8 cleanup --- swarms/models/sampling_params.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/swarms/models/sampling_params.py b/swarms/models/sampling_params.py index c2fdd121..bf33b76c 100644 --- a/swarms/models/sampling_params.py +++ b/swarms/models/sampling_params.py @@ -209,10 +209,7 @@ class SamplingParams: raise ValueError( f"logprobs must be non-negative, got {self.logprobs}." ) - if ( - self.prompt_logprobs is not None - and self.prompt_logprobs < 0 - ): + if (self.prompt_logprobs is not None and self.prompt_logprobs < 0): raise ValueError( "prompt_logprobs must be non-negative, got " f"{self.prompt_logprobs}."