Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
update multifile analysis with plot normalization
Browse files
ui.py
CHANGED
|
@@ -400,15 +400,15 @@ def render_multifile_summary(plotly_config=None):
|
|
| 400 |
st.session_state.categories, st.session_state.categorySelect,
|
| 401 |
speakerRenames=st.session_state.speakerRenames,
|
| 402 |
)
|
| 403 |
-
df7, _ = utils.build_multifile_voice_df(validNames, st.session_state.
|
| 404 |
|
| 405 |
fig6 = px.bar(df6, x="files", y=allCategories,
|
| 406 |
title="% of File Duration Spoken by Each Speaker/Role *")
|
| 407 |
fig6.update_layout(yaxis_title="% of File Duration")
|
| 408 |
st.plotly_chart(fig6, use_container_width=True, config=cfg)
|
| 409 |
st.caption(
|
| 410 |
-
"*Note: Values
|
| 411 |
-
"
|
| 412 |
)
|
| 413 |
|
| 414 |
with st.container():
|
|
|
|
| 400 |
st.session_state.categories, st.session_state.categorySelect,
|
| 401 |
speakerRenames=st.session_state.speakerRenames,
|
| 402 |
)
|
| 403 |
+
df7, _ = utils.build_multifile_voice_df(validNames, st.session_state.summaries)
|
| 404 |
|
| 405 |
fig6 = px.bar(df6, x="files", y=allCategories,
|
| 406 |
title="% of File Duration Spoken by Each Speaker/Role *")
|
| 407 |
fig6.update_layout(yaxis_title="% of File Duration")
|
| 408 |
st.plotly_chart(fig6, use_container_width=True, config=cfg)
|
| 409 |
st.caption(
|
| 410 |
+
"*Note: Values are normalized to 100%. Overlaps between speakers "
|
| 411 |
+
"of the same role are counted only once."
|
| 412 |
)
|
| 413 |
|
| 414 |
with st.container():
|