Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
from transformers import pipeline
|
| 2 |
import gradio as gr
|
| 3 |
|
| 4 |
-
pipe = pipeline(model="Zaid/whisper-
|
| 5 |
|
| 6 |
def transcribe(audio):
|
| 7 |
text = pipe(audio)["text"]
|
|
@@ -11,8 +11,8 @@ iface = gr.Interface(
|
|
| 11 |
fn=transcribe,
|
| 12 |
inputs=gr.Audio(source="microphone", type="filepath"),
|
| 13 |
outputs="text",
|
| 14 |
-
title="Whisper
|
| 15 |
-
description="Realtime demo for Arabic speech recognition using a fine-tuned Whisper
|
| 16 |
|
| 17 |
)
|
| 18 |
|
|
|
|
| 1 |
from transformers import pipeline
|
| 2 |
import gradio as gr
|
| 3 |
|
| 4 |
+
pipe = pipeline(model="Zaid/whisper-large-v2-ar") # change to "your-username/the-name-you-picked"
|
| 5 |
|
| 6 |
def transcribe(audio):
|
| 7 |
text = pipe(audio)["text"]
|
|
|
|
| 11 |
fn=transcribe,
|
| 12 |
inputs=gr.Audio(source="microphone", type="filepath"),
|
| 13 |
outputs="text",
|
| 14 |
+
title="Whisper Large Arabic",
|
| 15 |
+
description="Realtime demo for Arabic speech recognition using a fine-tuned Whisper large model.",
|
| 16 |
|
| 17 |
)
|
| 18 |
|