Spaces:
Runtime error
Runtime error
MetroBox
commited on
Commit
•
5bce4d2
1
Parent(s):
16e3fa0
test debug
Browse files
app.py
CHANGED
@@ -97,7 +97,7 @@ def segment_embedding(path, segment, duration):
|
|
97 |
def add_speaker_labels(segments, embeddings, num_speakers):
|
98 |
clustering = AgglomerativeClustering(num_speakers).fit(embeddings)
|
99 |
labels = clustering.labels_
|
100 |
-
print(labels)
|
101 |
for i in range(len(segments)):
|
102 |
segments[i]["speaker"] = 'HABLANTE ' + str(labels[i] + 1)
|
103 |
|
|
|
97 |
def add_speaker_labels(segments, embeddings, num_speakers):
|
98 |
clustering = AgglomerativeClustering(num_speakers).fit(embeddings)
|
99 |
labels = clustering.labels_
|
100 |
+
print("estos son los labels" + labels)
|
101 |
for i in range(len(segments)):
|
102 |
segments[i]["speaker"] = 'HABLANTE ' + str(labels[i] + 1)
|
103 |
|