kingabzpro commited on
Commit
146f24d
β€’
1 Parent(s): 56f600c

Update Gradio/app.py

Browse files
Files changed (1) hide show
  1. Gradio/app.py +2 -1
Gradio/app.py CHANGED
@@ -1,4 +1,5 @@
1
  import os
 
2
  import unicodedata
3
  from datasets import load_dataset, Audio
4
  from transformers import pipeline
@@ -14,7 +15,7 @@ hf_writer = gr.HuggingFaceDatasetSaver(HF_TOKEN, "Urdu-ASR-flags")
14
  ############## Inference ##############################
15
 
16
 
17
- transcriber = pipeline("automatic-speech-recognition", model="openai/whisper-base.en")
18
 
19
  def transcribe(audio):
20
  sr, y = audio
 
1
  import os
2
+ import numpy as np
3
  import unicodedata
4
  from datasets import load_dataset, Audio
5
  from transformers import pipeline
 
15
  ############## Inference ##############################
16
 
17
 
18
+ transcriber = pipeline("automatic-speech-recognition", model="kingabzpro/wav2vec2-large-xls-r-300m-Urdu")
19
 
20
  def transcribe(audio):
21
  sr, y = audio