petro_y
commited on
Commit
•
e017c20
1
Parent(s):
efa7f0a
fix10
Browse files
app.py
CHANGED
@@ -12,7 +12,7 @@ login(token=os.getenv("HUGGINGFACE_HUB_TOKEN"))
|
|
12 |
pipeline = Pipeline.from_pretrained(
|
13 |
"pyannote/speaker-diarization-3.1",
|
14 |
use_auth_token=True
|
15 |
-
|
16 |
def diarization(audio_file):
|
17 |
if pipeline is None:
|
18 |
raise ValueError("Pipeline could not be initialized. Check your Hugging Face token and permissions.")
|
|
|
12 |
pipeline = Pipeline.from_pretrained(
|
13 |
"pyannote/speaker-diarization-3.1",
|
14 |
use_auth_token=True
|
15 |
+
)
|
16 |
def diarization(audio_file):
|
17 |
if pipeline is None:
|
18 |
raise ValueError("Pipeline could not be initialized. Check your Hugging Face token and permissions.")
|