DewiBrynJones commited on
Commit
ef324ea
1 Parent(s): b536ea7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -1,7 +1,7 @@
1
  import gradio as gr
2
  from transformers import pipeline
3
 
4
- p = pipeline("automatic-speech-recognition", model="techiaith/wav2vec2-xlsr-ft-cy", decoder = "Wav2Vec2ProcessorWithLM")
5
 
6
  def transcribe(audio):
7
  text = p(audio)["text"]
@@ -9,8 +9,8 @@ def transcribe(audio):
9
 
10
  demo = gr.Interface(
11
  fn=transcribe,
12
- title="Adnabod Lleferydd Cymraeg // Welsh Automatic Speech Recognition",
13
- description="Recordiwch eich hunain gyda'ch meicroffon yn dweud rhywbeth yn Gymraeg ac fe ddangosir yr AI drawsgrifiad o beth dywedoch. // Record yourself with your microphone saying something in Welsh and the AI will show you a transcript of what you said. ",
14
  inputs=gr.Audio(sources=["microphone"], type="filepath"),
15
  outputs=gr.Textbox(label="Trawsgrifiad // Transcription")
16
  )
 
1
  import gradio as gr
2
  from transformers import pipeline
3
 
4
+ p = pipeline("automatic-speech-recognition", model="DewiBrynJones/wav2vec2-xlsr-53-ft-ccv-en-cy", decoder = "Wav2Vec2ProcessorWithLM")
5
 
6
  def transcribe(audio):
7
  text = p(audio)["text"]
 
9
 
10
  demo = gr.Interface(
11
  fn=transcribe,
12
+ title="Adnabod Lleferydd Cymraeg a Saesneg // Welsh and English Automatic Speech Recognition",
13
+ description="Recordiwch eich hunain gyda'ch meicroffon yn dweud rhywbeth yn Gymraeg neu Saesneg ac fe ddangosir yr AI drawsgrifiad o beth dywedoch. // Record yourself with your microphone saying something in Welsh or English and the AI will show you a transcript of what you said. ",
14
  inputs=gr.Audio(sources=["microphone"], type="filepath"),
15
  outputs=gr.Textbox(label="Trawsgrifiad // Transcription")
16
  )