Spaces:
Sleeping
Sleeping
remotewith
commited on
Commit
•
f87e509
1
Parent(s):
727c067
Update app.py
Browse files
app.py
CHANGED
@@ -16,7 +16,7 @@ import contextlib
|
|
16 |
|
17 |
from sklearn.cluster import AgglomerativeClustering
|
18 |
import numpy as np
|
19 |
-
output=""
|
20 |
|
21 |
model = whisper.load_model("large-v2")
|
22 |
embedding_model = PretrainedSpeakerEmbedding(
|
@@ -42,7 +42,7 @@ def audio_to_text(audio, num_speakers):
|
|
42 |
else:
|
43 |
embeddings = make_embeddings(path, segments, duration)
|
44 |
add_speaker_labels(segments, embeddings, num_speakers)
|
45 |
-
global output
|
46 |
output = get_output(segments)
|
47 |
return output
|
48 |
|
|
|
16 |
|
17 |
from sklearn.cluster import AgglomerativeClustering
|
18 |
import numpy as np
|
19 |
+
#output=""
|
20 |
|
21 |
model = whisper.load_model("large-v2")
|
22 |
embedding_model = PretrainedSpeakerEmbedding(
|
|
|
42 |
else:
|
43 |
embeddings = make_embeddings(path, segments, duration)
|
44 |
add_speaker_labels(segments, embeddings, num_speakers)
|
45 |
+
#global output
|
46 |
output = get_output(segments)
|
47 |
return output
|
48 |
|