@@ -367,7 +367,7 @@ def create_prediction(self, label, data_row, prediction_model=None):
367367 res = self .client .execute (query_str , params )
368368 return Prediction (self .client , res ["createPrediction" ])
369369
370- def enable_model_assisted_labeling (self , toggle : bool = True ) -> bool :
370+ def enable_model_assisted_labeling (self , toggle : bool = True ) -> bool :
371371 """ Turns model assisted labeling either on or off based on input
372372
373373 Args:
@@ -385,15 +385,13 @@ def enable_model_assisted_labeling(self, toggle: bool=True) -> bool:
385385 id, showingPredictionsToLabelers
386386 }
387387 }
388- }""" % (project_param , show_param ,project_param , show_param )
388+ }""" % (project_param , show_param , project_param , show_param )
389389
390- params = {
391- project_param : self .uid ,
392- show_param : toggle
393- }
390+ params = {project_param : self .uid , show_param : toggle }
394391
395392 res = self .client .execute (query_str , params )
396- return res ["project" ]["showPredictionsToLabelers" ]["showingPredictionsToLabelers" ]
393+ return res ["project" ]["showPredictionsToLabelers" ][
394+ "showingPredictionsToLabelers" ]
397395
398396 def upload_annotations (
399397 self ,
@@ -460,6 +458,7 @@ def _is_url_valid(url: Union[str, Path]) -> bool:
460458 raise ValueError (
461459 f'Invalid annotations given of type: { type (annotations )} ' )
462460
461+
463462class LabelingParameterOverride (DbObject ):
464463 priority = Field .Int ("priority" )
465464 number_of_labels = Field .Int ("number_of_labels" )
0 commit comments