Update custom model files, README, and requirements
Browse files- asr_pipeline.py +1 -4
asr_pipeline.py
CHANGED
|
@@ -229,10 +229,7 @@ class SpeakerDiarizer:
|
|
| 229 |
# Some versions return (annotation, embeddings) tuple
|
| 230 |
annotation = diarization[0]
|
| 231 |
else:
|
| 232 |
-
raise TypeError(
|
| 233 |
-
f"Unexpected diarization output type: {type(diarization)}. "
|
| 234 |
-
f"Attributes: {[a for a in dir(diarization) if not a.startswith('_')]}"
|
| 235 |
-
)
|
| 236 |
|
| 237 |
# Convert to simple format
|
| 238 |
segments = []
|
|
|
|
| 229 |
# Some versions return (annotation, embeddings) tuple
|
| 230 |
annotation = diarization[0]
|
| 231 |
else:
|
| 232 |
+
raise TypeError(f"Unexpected diarization output type: {type(diarization)}")
|
|
|
|
|
|
|
|
|
|
| 233 |
|
| 234 |
# Convert to simple format
|
| 235 |
segments = []
|