This commit is contained in:
parent
88ddc35741
commit
c3e394d0ca
@ -70,7 +70,7 @@ def run_classification(task, target_class_name: str):
|
||||
results = {
|
||||
"tag": task['tag'],
|
||||
"model": task['model'],
|
||||
"is_target": class_id == target_id,
|
||||
"is_target": bool(class_id == target_id),
|
||||
"probability": probability[target_id]
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user