Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -387,16 +387,19 @@ else:
|
|
| 387 |
st.session_state.unusedSpeakers[i] = speakerNames
|
| 388 |
analyze(file_names[i])
|
| 389 |
st.success(f"Took {time.time() - start_time} seconds to analyze {totalFiles} files!")
|
| 390 |
-
|
|
|
|
|
|
|
| 391 |
if currFile is None and len(st.session_state.results) > 0 and len(st.session_state.results[0]) > 0:
|
| 392 |
st.write("Select a file to view from the sidebar")
|
| 393 |
-
|
| 394 |
try:
|
|
|
|
| 395 |
st.session_state.resetResult = False
|
| 396 |
currFileIndex = file_names.index(currFile)
|
| 397 |
|
| 398 |
if len(st.session_state.results) > currFileIndex and len(st.session_state.summaries) > currFileIndex and len(st.session_state.results[currFileIndex]) > 0:
|
| 399 |
-
|
| 400 |
# Handle
|
| 401 |
currSpeakerList, currAnnotation, currTotalTime = st.session_state.results[currFileIndex]
|
| 402 |
speakerNames = currAnnotation.labels()
|
|
|
|
| 387 |
st.session_state.unusedSpeakers[i] = speakerNames
|
| 388 |
analyze(file_names[i])
|
| 389 |
st.success(f"Took {time.time() - start_time} seconds to analyze {totalFiles} files!")
|
| 390 |
+
|
| 391 |
+
currFile = st.sidebar.selectbox('Current File', file_names,on_change=updateMultiSelect,key="select_currFile")
|
| 392 |
+
st.info(currFile)
|
| 393 |
if currFile is None and len(st.session_state.results) > 0 and len(st.session_state.results[0]) > 0:
|
| 394 |
st.write("Select a file to view from the sidebar")
|
| 395 |
+
st.info("Before try")
|
| 396 |
try:
|
| 397 |
+
st.info("In try")
|
| 398 |
st.session_state.resetResult = False
|
| 399 |
currFileIndex = file_names.index(currFile)
|
| 400 |
|
| 401 |
if len(st.session_state.results) > currFileIndex and len(st.session_state.summaries) > currFileIndex and len(st.session_state.results[currFileIndex]) > 0:
|
| 402 |
+
st.info("In if")
|
| 403 |
# Handle
|
| 404 |
currSpeakerList, currAnnotation, currTotalTime = st.session_state.results[currFileIndex]
|
| 405 |
speakerNames = currAnnotation.labels()
|