Fix tab_dataset

This commit is contained in:
zin
2026-05-06 23:36:42 +00:00
parent b99ca8022a
commit 39a68bc3c3
3 changed files with 23 additions and 23 deletions
+2 -1
View File
@@ -74,7 +74,8 @@ def render_dataset_tab(matcher, image_files, embeddings, labels_array, images_pa
c1, c2 = st.columns([1, 3])
with c1:
st.write(f"**ID:** {int(row['song_id'])}")
st.caption(f"L2 Dist: {row['distance']:.2f}")
score_val = row.get('final_score', row.get('emo_distance', 0))
st.caption(f"Dist Score: {score_val:.2f}")
with c2:
audio_path = matcher.get_audio_path(row['song_id'])
if audio_path: