File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ class ApiTokenError(GroundlightClientError):
6565 pass
6666
6767
68- class Groundlight : # pylint: disable=too-many-instance-attributes
68+ class Groundlight : # pylint: disable=too-many-instance-attributes,too-many-public-methods
6969 """
7070 Client for accessing the Groundlight cloud service. Provides methods to create visual detectors,
7171 submit images for analysis, and retrieve predictions.
@@ -443,7 +443,7 @@ def create_detector( # noqa: PLR0913
443443 pipeline_config = pipeline_config ,
444444 metadata = metadata ,
445445 )
446- elif mode == ModeEnum .COUNT :
446+ if mode == ModeEnum .COUNT :
447447 if class_names is None :
448448 raise ValueError ("class_names is required for counting detectors" )
449449 if isinstance (class_names , list ):
@@ -458,7 +458,7 @@ def create_detector( # noqa: PLR0913
458458 pipeline_config = pipeline_config ,
459459 metadata = metadata ,
460460 )
461- elif mode == ModeEnum .MULTI_CLASS :
461+ if mode == ModeEnum .MULTI_CLASS :
462462 if class_names is None :
463463 raise ValueError ("class_names is required for multi-class detectors" )
464464 if isinstance (class_names , str ):
You can’t perform that action at this time.
0 commit comments