on1onmangoes commited on
Commit
0f9bdc0
1 Parent(s): 3ddb6ef

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
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 = """Combine the speed of Whisper JAX with pyannote speaker diarization to transcribe meetings in super fast time. Demo uses Whisper JAX as an [endpoint](https://twitter.com/sanchitgandhi99/status/1656665496463495168) and pyannote speaker diarization running locally. The Whisper JAX endpoint is run asynchronously, meaning speaker diarization is run in parallel to the speech transcription. The diarized timestamps are aligned with the Whisper output to give the final speaker-segmented transcription.
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 = """Whisper large-v2 model by OpenAI. Speaker diarization model by pyannote. Whisper JAX backend running JAX on a TPU v4-8 through the generous support of the [TRC](https://sites.research.google/trc/about/) programme. Whisper JAX [code](https://github.com/sanchit-gandhi/whisper-jax) and Gradio demo by 🤗 Hugging Face."""
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