FahadAlam commited on
Commit
ab1390c
·
1 Parent(s): 0c2faeb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -5
app.py CHANGED
@@ -31,11 +31,7 @@ def segmentation(audio):
31
 
32
  return diarized_output, full_text
33
 
34
- title = "Speech Recognition with Speaker Segmentation"
35
- description = "Speaker Diarization is the act of attributing individual speakers to their corresponding parts in an audio recording. This space aims to distinguish the speakers with speaker segmentation and their speech with speech-to-text from a given input audio file. Pre-trained models used are Pyannote[1] for the Speaker Segmentation and Wav2Vec2[2] for the Automatic Speech Recognition."
36
- article = "<p style='text-align: center'><a href='https://github.com/pyannote/pyannote-audio' target='_blank'>[1] Pyannote - Speaker Segmentation model (GitHub repo)</a></p>"
37
- article += "<p style='text-align: center'><a href='https://github.com/pytorch/fairseq/tree/main/examples/wav2vec#wav2vec-20' target='_blank'>[2] Facebook Wav2Vec2 (GitHub repo)</a></p>"
38
- article += "<p style='text-align: center'>Audio File Sources: <a href='https://www.youtube.com/watch?v=DYu_bGbZiiQ&t=132s' target='_blank'>1</a> <a href='https://www.youtube.com/watch?v=DDjWTWHHkpk&t=29s' target='_blank'>2</a> <a href='https://www.youtube.com/watch?v=G2xWg2ckKHI&t=24s' target='_blank'>3</a> <a href='https://www.youtube.com/watch?v=sCcv9uqSBU0&t=32s' target='_blank'>4</a> <a href='https://www.youtube.com/watch?v=K1hlp0DCE_8&t=71s' target='_blank'>5</a></p>"
39
 
40
  inputs = gr.inputs.Audio(source="upload", type="filepath", label="Upload your audio file here:")
41
  outputs = [gr.outputs.Textbox(type="auto", label="Diarized Output"),
 
31
 
32
  return diarized_output, full_text
33
 
34
+ title = "Speaker Segmentation"
 
 
 
 
35
 
36
  inputs = gr.inputs.Audio(source="upload", type="filepath", label="Upload your audio file here:")
37
  outputs = [gr.outputs.Textbox(type="auto", label="Diarized Output"),