Spaces:
Runtime error
Runtime error
Commit
·
0a57587
1
Parent(s):
83cf0f6
Update app.py
Browse files
app.py
CHANGED
|
@@ -212,7 +212,7 @@ def Transcribe_V2(num_speakers, speaker_names, audio="temp_audio.wav"):
|
|
| 212 |
return frames / float(rate)
|
| 213 |
|
| 214 |
def make_embeddings(path, segments, duration):
|
| 215 |
-
embeddings = np.zeros(shape=(len(segments),
|
| 216 |
for i, segment in enumerate(segments):
|
| 217 |
embeddings[i] = segment_embedding(path, segment, duration)
|
| 218 |
return np.nan_to_num(embeddings)
|
|
|
|
| 212 |
return frames / float(rate)
|
| 213 |
|
| 214 |
def make_embeddings(path, segments, duration):
|
| 215 |
+
embeddings = np.zeros(shape=(len(segments), 192))
|
| 216 |
for i, segment in enumerate(segments):
|
| 217 |
embeddings[i] = segment_embedding(path, segment, duration)
|
| 218 |
return np.nan_to_num(embeddings)
|