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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -385,7 +385,6 @@ else:
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,9 +394,9 @@ else:
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()
@@ -551,7 +550,9 @@ else:
551
  fileNames.append(resultTuple[0])
552
  results.append(resultTuple[1])
553
  indices.append(i)
554
-
 
 
555
  if len(indices) > 1:
556
 
557
  df6_dict = {
 
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
  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()
 
550
  fileNames.append(resultTuple[0])
551
  results.append(resultTuple[1])
552
  indices.append(i)
553
+ st.info(f'filenames : {fileNames}')
554
+ st.info(f'indices : {indices}')
555
+ st.info(f'results : {results}')
556
  if len(indices) > 1:
557
 
558
  df6_dict = {