chore: fix tab_live
This commit is contained in:
@@ -30,7 +30,7 @@ def render_live_tab(matcher, image_processor):
|
||||
st.caption(f"*{caption.capitalize()}*")
|
||||
all_objects.append(caption)
|
||||
|
||||
if st.button("🎵 Сгенерировать саундтрек", type="primary", use_container_width=True):
|
||||
if st.button("Сгенерировать саундтрек", type="primary", use_container_width=True):
|
||||
|
||||
# 1. Извлекаем эмоции
|
||||
all_v, all_a = [], []
|
||||
@@ -57,7 +57,7 @@ def render_live_tab(matcher, image_processor):
|
||||
col_left, col_right = st.columns([1, 2])
|
||||
|
||||
with col_left:
|
||||
st.header("📊 Профиль")
|
||||
st.header("Профиль")
|
||||
st.metric("Valence (Настроение)", f"{target_v:.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}")
|
||||
|
||||
with col_right:
|
||||
st.header("🎵 Плейлист")
|
||||
st.header("Плейлист")
|
||||
for _, row in playlist.iterrows():
|
||||
with st.container(border=True):
|
||||
c1, c2 = st.columns([1, 3])
|
||||
|
||||
Reference in New Issue
Block a user