duongthienz commited on
Commit
8b2ca45
·
verified ·
1 Parent(s): 67fb845

update multifile analysis with plot normalization

Browse files
Files changed (1) hide show
  1. ui.py +3 -3
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.results)
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 may not sum to 100% as overlaps between speakers "
411
- "are only counted once."
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():