We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 077a28b commit 48ae01fCopy full SHA for 48ae01f
labelbox/client.py
@@ -696,10 +696,12 @@ def create_project(self, **kwargs) -> Project:
696
data[
697
"auto_audit_number_of_labels"] = BENCHMARK_AUTO_AUDIT_NUMBER_OF_LABELS
698
data["auto_audit_percentage"] = BENCHMARK_AUTO_AUDIT_PERCENTAGE
699
- else:
+ elif quality_mode is QualityMode.Consensus:
700
701
"auto_audit_number_of_labels"] = CONSENSUS_AUTO_AUDIT_NUMBER_OF_LABELS
702
data["auto_audit_percentage"] = CONSENSUS_AUTO_AUDIT_PERCENTAGE
703
+ else:
704
+ raise ValueError(f"{quality_mode} is not a valid quality mode.")
705
706
return self._create(Entity.Project, {
707
**data,
0 commit comments