Update app.py
Browse files
app.py
CHANGED
@@ -1,9 +1,8 @@
|
|
1 |
import gradio as gr
|
2 |
-
|
3 |
-
from transformers import AutoProcessor, AutoModelForSpeechSeq2Seq
|
4 |
|
5 |
-
|
6 |
-
model =
|
7 |
|
8 |
def transcribe(audio):
|
9 |
# Get the output from the model
|
|
|
1 |
import gradio as gr
|
2 |
+
from transformers import pipeline
|
|
|
3 |
|
4 |
+
# Load the model
|
5 |
+
model = pipeline("automatic-speech-recognition", model="tarteel-ai/whisper-base-ar-quran")
|
6 |
|
7 |
def transcribe(audio):
|
8 |
# Get the output from the model
|