We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3ddce7f commit ca3aac5Copy full SHA for ca3aac5
apps/ai_reports/serializers.py
@@ -25,7 +25,7 @@ class Meta:
25
def get_label(self, ai_report: AiReport):
26
"""Replace label codes with description and remove catneutral and catnodecis"""
27
return [
28
- (label, settings.XAI_LABELS[label])
+ (label, settings.XAI_LABELS.get(label, label))
29
for label in ai_report.label
30
if label != "catneutral" and label != "catnodecis"
31
]
0 commit comments