Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
Update app.py
Browse files
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'):
|