def set_detector_value(self, kwargs_list: list):
    ' Only allow changes to confidence or the model '
    try:
        for kwargs in kwargs_list:
            field = kwargs.get('field')
            value = kwargs.get('value')
            if (field in ['detector_confidence', 'detector_model']):
                logger.info(f'{self.detector_name}: setting value: {field}: {value}')
                self.monitor_config[field] = value
    except Exception as e:
        logger.error(f'{self.__class__.__name__}: Error setting value: {e}')
Only allow changes to confidence or the model
def set_detector_value(self, kwargs_list: list):
    '  '
    try:
        for kwargs in kwargs_list:
            field = kwargs.get('field')
            value = kwargs.get('value')
            if (field in ['detector_confidence', 'detector_model']):
                logger.info(f'{self.detector_name}: setting value: {field}: {value}')
                self.monitor_config[field] = value
    except Exception as e:
        logger.error(f'{self.__class__.__name__}: Error setting value: {e}')