Spaces:
Running
Running
Commit
·
059633f
1
Parent(s):
8cf7689
disable debug info
Browse files
app.py
CHANGED
|
@@ -214,7 +214,7 @@ def process(
|
|
| 214 |
|
| 215 |
audio, sample_rate = read_wave(filename)
|
| 216 |
|
| 217 |
-
MyPrint(f"audio, {audio.shape}, {sample_rate}")
|
| 218 |
|
| 219 |
sd = get_speaker_diarization(
|
| 220 |
segmentation_model=speaker_segmentation_model,
|
|
|
|
| 214 |
|
| 215 |
audio, sample_rate = read_wave(filename)
|
| 216 |
|
| 217 |
+
MyPrint(f"audio, {audio.shape[0] / sample_rate}, {sample_rate}")
|
| 218 |
|
| 219 |
sd = get_speaker_diarization(
|
| 220 |
segmentation_model=speaker_segmentation_model,
|
model.py
CHANGED
|
@@ -98,11 +98,11 @@ def get_speaker_diarization(
|
|
| 98 |
pyannote=sherpa_onnx.OfflineSpeakerSegmentationPyannoteModelConfig(
|
| 99 |
model=segmentation
|
| 100 |
),
|
| 101 |
-
debug=
|
| 102 |
),
|
| 103 |
embedding=sherpa_onnx.SpeakerEmbeddingExtractorConfig(
|
| 104 |
model=embedding,
|
| 105 |
-
debug=
|
| 106 |
),
|
| 107 |
clustering=sherpa_onnx.FastClusteringConfig(
|
| 108 |
num_clusters=num_clusters,
|
|
|
|
| 98 |
pyannote=sherpa_onnx.OfflineSpeakerSegmentationPyannoteModelConfig(
|
| 99 |
model=segmentation
|
| 100 |
),
|
| 101 |
+
debug=False,
|
| 102 |
),
|
| 103 |
embedding=sherpa_onnx.SpeakerEmbeddingExtractorConfig(
|
| 104 |
model=embedding,
|
| 105 |
+
debug=False,
|
| 106 |
),
|
| 107 |
clustering=sherpa_onnx.FastClusteringConfig(
|
| 108 |
num_clusters=num_clusters,
|