chore: fix tab_live

This commit is contained in:
zin
2026-05-28 20:24:49 +00:00
parent af3c5a953e
commit fde8dbf2e7
+3 -3
View File
@@ -30,7 +30,7 @@ def render_live_tab(matcher, image_processor):
st.caption(f"*{caption.capitalize()}*") st.caption(f"*{caption.capitalize()}*")
all_objects.append(caption) all_objects.append(caption)
if st.button("🎵 Сгенерировать саундтрек", type="primary", use_container_width=True): if st.button("Сгенерировать саундтрек", type="primary", use_container_width=True):
# 1. Извлекаем эмоции # 1. Извлекаем эмоции
all_v, all_a = [], [] all_v, all_a = [], []
@@ -57,7 +57,7 @@ def render_live_tab(matcher, image_processor):
col_left, col_right = st.columns([1, 2]) col_left, col_right = st.columns([1, 2])
with col_left: with col_left:
st.header("📊 Профиль") st.header("Профиль")
st.metric("Valence (Настроение)", f"{target_v:.2f}") st.metric("Valence (Настроение)", f"{target_v:.2f}")
st.metric("Arousal (Энергия)", f"{target_a:.2f}") st.metric("Arousal (Энергия)", f"{target_a:.2f}")
@@ -67,7 +67,7 @@ def render_live_tab(matcher, image_processor):
st.caption(f"- {k}: {v:.2f}") st.caption(f"- {k}: {v:.2f}")
with col_right: with col_right:
st.header("🎵 Плейлист") st.header("Плейлист")
for _, row in playlist.iterrows(): for _, row in playlist.iterrows():
with st.container(border=True): with st.container(border=True):
c1, c2 = st.columns([1, 3]) c1, c2 = st.columns([1, 3])