Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -37,9 +37,7 @@ def yolov8_inference(
|
|
37 |
anchor = h if h > w else w
|
38 |
|
39 |
# Create the dictionary by filtering list1 and list2 based on list3
|
40 |
-
selected_classes =
|
41 |
-
[0, 1, 2, 3, 4]) \
|
42 |
-
if key in selected_labels_list}
|
43 |
|
44 |
# print(filtered_mapping)
|
45 |
# selected_classes = [0, 1, 2, 3, 4] # all classes
|
|
|
37 |
anchor = h if h > w else w
|
38 |
|
39 |
# Create the dictionary by filtering list1 and list2 based on list3
|
40 |
+
selected_classes = [[0, 1, 2, 3, 4][["anus", "make_love", "nipple", "penis", "vagina"].index(item)] for item in selected_labels_list]
|
|
|
|
|
41 |
|
42 |
# print(filtered_mapping)
|
43 |
# selected_classes = [0, 1, 2, 3, 4] # all classes
|