msis commited on
Commit
90fcf4f
·
1 Parent(s): 40702e0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -3,7 +3,8 @@ from transformers import pipeline
3
  import gradio as gr
4
 
5
 
6
- pipe = pipeline(model="tarteel-ai/whisper-tiny-ar-quran", use_auth_token=os.environ["HF_TARTEEL_TOKEN"]) # change to "your-username/the-name-you-picked"
 
7
 
8
  def transcribe(audio):
9
  text = pipe(audio)["text"]
@@ -13,8 +14,8 @@ iface = gr.Interface(
13
  fn=transcribe,
14
  inputs=gr.Audio(source="microphone", type="filepath"),
15
  outputs="text",
16
- title="Whisper Tiny for Quranic Arabic",
17
- description="Realtime demo for Quran speech recognition using a fine-tuned Whisper tiny model.",
18
  )
19
 
20
  iface.launch()
 
3
  import gradio as gr
4
 
5
 
6
+ pipe = pipeline(model="tarteel-ai/whisper-base-ar-quran",
7
+ use_auth_token=os.environ["HF_TARTEEL_TOKEN"]) # change to "your-username/the-name-you-picked"
8
 
9
  def transcribe(audio):
10
  text = pipe(audio)["text"]
 
14
  fn=transcribe,
15
  inputs=gr.Audio(source="microphone", type="filepath"),
16
  outputs="text",
17
+ title="Whisper Base for Quranic Arabic",
18
+ description="Realtime demo for Quran speech recognition using a fine-tuned Whisper base model.",
19
  )
20
 
21
  iface.launch()