duongthienz commited on
Commit
43b7728
·
verified ·
1 Parent(s): f1ef4b6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -525,7 +525,8 @@ if st.sidebar.button("Load Demo Example"):
525
  totalSeconds = segment.end
526
  st.session_state.results = [(annotations, totalSeconds)]
527
  st.session_state.summaries = [{}]
528
- st.session_state.speakerRenames = [{}]
 
529
  speakerNames = annotations.labels()
530
  st.session_state.unusedSpeakers = [speakerNames]
531
  with st.spinner(text=f'Analyzing Demo Data'):
 
525
  totalSeconds = segment.end
526
  st.session_state.results = [(annotations, totalSeconds)]
527
  st.session_state.summaries = [{}]
528
+ if not st.session_state.speakerRenames:
529
+ st.session_state.speakerRenames = [{}]
530
  speakerNames = annotations.labels()
531
  st.session_state.unusedSpeakers = [speakerNames]
532
  with st.spinner(text=f'Analyzing Demo Data'):