Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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-
|
|
|
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
|
17 |
-
description="Realtime demo for Quran speech recognition using a fine-tuned Whisper
|
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()
|