Ashishkr commited on
Commit
22f313e
·
1 Parent(s): 6a6b754

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -10
app.py CHANGED
@@ -258,13 +258,6 @@ def transcribe_yt(yt_url, task="transcribe", group_by_speaker=True, progress=gr.
258
 
259
  title = "Whisper JAX + Speaker Diarization ⚡️"
260
 
261
- 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.
262
-
263
- 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.
264
- """
265
-
266
- 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."
267
-
268
  microphone = gr.Interface(
269
  fn=transcribe,
270
  inputs=[
@@ -276,9 +269,7 @@ microphone = gr.Interface(
276
  gr.outputs.Textbox(label="Transcription").style(show_copy_button=True),
277
  ],
278
  allow_flagging="never",
279
- title=title,
280
- description=description,
281
- article=article,
282
  )
283
 
284
  audio_file = gr.Interface(
 
258
 
259
  title = "Whisper JAX + Speaker Diarization ⚡️"
260
 
 
 
 
 
 
 
 
261
  microphone = gr.Interface(
262
  fn=transcribe,
263
  inputs=[
 
269
  gr.outputs.Textbox(label="Transcription").style(show_copy_button=True),
270
  ],
271
  allow_flagging="never",
272
+ title=title
 
 
273
  )
274
 
275
  audio_file = gr.Interface(