Fix tab_dataset
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user