if control_mode == 0:
self.control_mode = 'Balanced',
elif control_mode == 1:
self.control_mode = 'My prompt is more important'
elif control_mode == 2:
self.control_mode = 'ControlNet is more important'
else:
self.control_mode = control_mode
Adding an extra ',' in 'Balanced' will result in recognition errors