Spaces:
Runtime error
Runtime error
bug
Browse files- src/label_interface.py +2 -2
src/label_interface.py
CHANGED
@@ -69,7 +69,7 @@ def get_next_image(
|
|
69 |
)
|
70 |
except IndexError:
|
71 |
gr.Warning("No image found for the selected filter.")
|
72 |
-
return None, None, None, None, None, None, None,
|
73 |
|
74 |
def submit_label(
|
75 |
voted_concepts: list,
|
@@ -85,7 +85,7 @@ def submit_label(
|
|
85 |
username = profile.username
|
86 |
if current_image is None:
|
87 |
gr.Warning("No image selected.")
|
88 |
-
return None, None, None, None, None, None, None,
|
89 |
current_split, idx = current_image.split(":")
|
90 |
idx = int(idx)
|
91 |
global_variables.get_metadata(current_split)
|
|
|
69 |
)
|
70 |
except IndexError:
|
71 |
gr.Warning("No image found for the selected filter.")
|
72 |
+
return None, None, None, None, None, None, None, filtered_indices, selected_concepts, selected_sample_type
|
73 |
|
74 |
def submit_label(
|
75 |
voted_concepts: list,
|
|
|
85 |
username = profile.username
|
86 |
if current_image is None:
|
87 |
gr.Warning("No image selected.")
|
88 |
+
return None, None, None, None, None, None, None, filtered_indices, selected_concepts, selected_sample_type
|
89 |
current_split, idx = current_image.split(":")
|
90 |
idx = int(idx)
|
91 |
global_variables.get_metadata(current_split)
|