Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -199,7 +199,7 @@ def analyze_audio(audio_file: str,
|
|
| 199 |
aligned = {"segments": result["segments"]}
|
| 200 |
warn(results, "ALIGN_SKIP", "Alignment unavailable; using raw Whisper segments.")
|
| 201 |
diarize_output = None
|
| 202 |
-
if
|
| 203 |
print("Performing speaker diarization (Requires HF_TOKEN)...")
|
| 204 |
try:
|
| 205 |
diarize_output = global_diarizer(audio_for_model)
|
|
|
|
| 199 |
aligned = {"segments": result["segments"]}
|
| 200 |
warn(results, "ALIGN_SKIP", "Alignment unavailable; using raw Whisper segments.")
|
| 201 |
diarize_output = None
|
| 202 |
+
if global_diarizer is not None:
|
| 203 |
print("Performing speaker diarization (Requires HF_TOKEN)...")
|
| 204 |
try:
|
| 205 |
diarize_output = global_diarizer(audio_for_model)
|