Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -137,10 +137,10 @@ def calcCategories(annotation,maxTime):
|
|
| 137 |
multiVoice = []
|
| 138 |
# TBD Clean this up!!!
|
| 139 |
rawData = {}
|
| 140 |
-
for speakerName in
|
| 141 |
if speakerName not in rawData.keys():
|
| 142 |
rawData[speakerName] = []
|
| 143 |
-
for segmentItem in
|
| 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 = []
|