czyoung commited on
Commit
06bbbfc
·
verified ·
1 Parent(s): e60ff5c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -385,6 +385,7 @@ else:
385
  st.session_state.summaries[i] = {}
386
  speakerNames = annotations.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
 
@@ -394,8 +395,9 @@ else:
394
  try:
395
  st.session_state.resetResult = False
396
  currFileIndex = file_names.index(currFile)
 
397
  if len(st.session_state.results) > currFileIndex and len(st.session_state.summaries) > currFileIndex and len(st.session_state.results[currFileIndex]) > 0:
398
-
399
  # Handle
400
  currSpeakerList, currAnnotation, currTotalTime = st.session_state.results[currFileIndex]
401
  speakerNames = currAnnotation.labels()
 
385
  st.session_state.summaries[i] = {}
386
  speakerNames = annotations.labels()
387
  st.session_state.unusedSpeakers[i] = speakerNames
388
+ st.info([len(r) for r in st.session_state.results])
389
  analyze(file_names[i])
390
  st.success(f"Took {time.time() - start_time} seconds to analyze {totalFiles} files!")
391
 
 
395
  try:
396
  st.session_state.resetResult = False
397
  currFileIndex = file_names.index(currFile)
398
+ st.info("Out page update")
399
  if len(st.session_state.results) > currFileIndex and len(st.session_state.summaries) > currFileIndex and len(st.session_state.results[currFileIndex]) > 0:
400
+ st.info("In page update")
401
  # Handle
402
  currSpeakerList, currAnnotation, currTotalTime = st.session_state.results[currFileIndex]
403
  speakerNames = currAnnotation.labels()