Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
Revert No-voice from proportion graph in Multi File Analysis
Browse files
ui.py
CHANGED
|
@@ -402,17 +402,15 @@ def render_multifile_summary(plotly_config=None):
|
|
| 402 |
)
|
| 403 |
df7, _ = utils.build_multifile_voice_df(validNames, st.session_state.summaries)
|
| 404 |
|
| 405 |
-
|
| 406 |
-
# df7 percentiles are 0-100, df6 uses 0-1 proportions.
|
| 407 |
-
no_voice_map = dict(zip(df7["files"], df7["No Voice"] / 100))
|
| 408 |
-
df6["No Voice"] = df6["files"].map(no_voice_map).fillna(0)
|
| 409 |
-
chart_cols = allCategories + ["No Voice"]
|
| 410 |
-
|
| 411 |
-
fig6 = px.bar(df6, x="files", y=chart_cols,
|
| 412 |
title="Proportion of File Duration Spoken by Each Speaker/Role *")
|
| 413 |
fig6.update_layout(yaxis_title="Proportion of File Duration")
|
| 414 |
st.plotly_chart(fig6, use_container_width=True, config=cfg)
|
| 415 |
-
st.caption(
|
|
|
|
|
|
|
|
|
|
|
|
|
| 416 |
|
| 417 |
sort_options = {
|
| 418 |
"Single Voice (least → most)": (["Single Voice", "Multi Voice"], True),
|
|
|
|
| 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="Proportion of File Duration Spoken by Each Speaker/Role *")
|
| 407 |
fig6.update_layout(yaxis_title="Proportion of File Duration")
|
| 408 |
st.plotly_chart(fig6, use_container_width=True, config=cfg)
|
| 409 |
+
st.caption(
|
| 410 |
+
"* Note: Overlaps between speakers of the same role are only counted once. "
|
| 411 |
+
"Bars may not sum to 1 — silence and cross-role overlaps are not shown here. "
|
| 412 |
+
"See the voice categories chart below for the full breakdown."
|
| 413 |
+
)
|
| 414 |
|
| 415 |
sort_options = {
|
| 416 |
"Single Voice (least → most)": (["Single Voice", "Multi Voice"], True),
|