Spaces:
Sleeping
Sleeping
Update utils/target_classifier.py
Browse files
utils/target_classifier.py
CHANGED
@@ -23,7 +23,8 @@ def get_target_labels(preds):
|
|
23 |
"""
|
24 |
|
25 |
# Turn into list
|
26 |
-
preds_list = preds.
|
|
|
27 |
|
28 |
# Get label names
|
29 |
predictions_names=[]
|
|
|
23 |
"""
|
24 |
|
25 |
# Turn into list
|
26 |
+
preds_list = preds.numpy().tolist()
|
27 |
+
|
28 |
|
29 |
# Get label names
|
30 |
predictions_names=[]
|