Spaces:
Runtime error
Runtime error
on1onmangoes
commited on
Commit
•
0f9bdc0
1
Parent(s):
3ddb6ef
Update app.py
Browse files
app.py
CHANGED
@@ -43,17 +43,16 @@ def transcribe(audio_path, num_speakers=2):
|
|
43 |
diarization_pipeline.n_speakers = num_speakers
|
44 |
|
45 |
# Run diarization
|
46 |
-
diarization = diarization_pipeline(audio_path)
|
47 |
|
48 |
return diarization
|
49 |
|
50 |
title = "SAML Speaker Diarization ⚡️ "
|
51 |
|
52 |
-
description = """
|
53 |
-
To duplicate the demo, first accept the pyannote terms of use for the [speaker diarization](https://huggingface.co/pyannote/speaker-diarization) and [segmentation](https://huggingface.co/pyannote/segmentation) models. Then, click [here](https://huggingface.co/spaces/sanchit-gandhi/whisper-jax-diarization?duplicate=true) to duplicate the demo, and enter your Hugging Face access token as a Space secret when prompted.
|
54 |
"""
|
55 |
|
56 |
-
article = """
|
57 |
|
58 |
|
59 |
import gradio as gr
|
|
|
43 |
diarization_pipeline.n_speakers = num_speakers
|
44 |
|
45 |
# Run diarization
|
46 |
+
diarization = diarization_pipeline(audio_path, num_speakers=num_speakers)
|
47 |
|
48 |
return diarization
|
49 |
|
50 |
title = "SAML Speaker Diarization ⚡️ "
|
51 |
|
52 |
+
description = """ pyannote speaker diarization running locally"""
|
|
|
53 |
"""
|
54 |
|
55 |
+
article = """"SAMLOne Speaker Segmentation or Diarization ""
|
56 |
|
57 |
|
58 |
import gradio as gr
|