czyoung commited on
Commit
3dc8dac
·
verified ·
1 Parent(s): dcaa601

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -137,10 +137,10 @@ def calcCategories(annotation,maxTime):
137
  multiVoice = []
138
  # TBD Clean this up!!!
139
  rawData = {}
140
- for speakerName in myAnnotation.labels():
141
  if speakerName not in rawData.keys():
142
  rawData[speakerName] = []
143
- for segmentItem in myAnnotation.label_support(speakerName):
144
  rawData[speakerName].append(segmentItem)
145
  for speaker in rawData.keys():
146
  timesToProcess = []
 
137
  multiVoice = []
138
  # TBD Clean this up!!!
139
  rawData = {}
140
+ for speakerName in annotation.labels():
141
  if speakerName not in rawData.keys():
142
  rawData[speakerName] = []
143
+ for segmentItem in annotation.label_support(speakerName):
144
  rawData[speakerName].append(segmentItem)
145
  for speaker in rawData.keys():
146
  timesToProcess = []