Spaces:
Sleeping
Sleeping
Commit
·
b62670c
1
Parent(s):
d30186e
update
Browse files- app.py +1 -2
- channel_mapping.py +1 -1
app.py
CHANGED
@@ -645,7 +645,6 @@ with gr.Blocks() as demo:
|
|
645 |
# update the current round
|
646 |
app_state["fillingCount"] += 1
|
647 |
|
648 |
-
print('cntttttt:', app_state["fillingCount"])
|
649 |
target_name = app_state["missingTemplates"][app_state["fillingCount"]-1]
|
650 |
target_idx = channel_info["templateByName"][target_name]["index"]
|
651 |
|
@@ -763,4 +762,4 @@ with gr.Blocks() as demo:
|
|
763 |
)
|
764 |
|
765 |
if __name__ == "__main__":
|
766 |
-
demo.launch(
|
|
|
645 |
# update the current round
|
646 |
app_state["fillingCount"] += 1
|
647 |
|
|
|
648 |
target_name = app_state["missingTemplates"][app_state["fillingCount"]-1]
|
649 |
target_idx = channel_info["templateByName"][target_name]["index"]
|
650 |
|
|
|
762 |
)
|
763 |
|
764 |
if __name__ == "__main__":
|
765 |
+
demo.launch()
|
channel_mapping.py
CHANGED
@@ -184,7 +184,7 @@ def find_neighbors(app_state, channel_info, fill_mode):
|
|
184 |
for channel in missing_channels:
|
185 |
distances, indices = knn.kneighbors(np.array(template_dict[channel]["coord"]).reshape(1,-1))
|
186 |
selected = [input_order[i] for i in indices[0]]
|
187 |
-
print(channel, ':', selected)
|
188 |
|
189 |
idx = template_dict[channel]["index"]
|
190 |
new_idx[idx] = indices[0].tolist()
|
|
|
184 |
for channel in missing_channels:
|
185 |
distances, indices = knn.kneighbors(np.array(template_dict[channel]["coord"]).reshape(1,-1))
|
186 |
selected = [input_order[i] for i in indices[0]]
|
187 |
+
#print(channel, ':', selected)
|
188 |
|
189 |
idx = template_dict[channel]["index"]
|
190 |
new_idx[idx] = indices[0].tolist()
|