Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -19,10 +19,10 @@
|
|
19 |
|
20 |
|
21 |
|
22 |
-
from transformers import pipeline
|
23 |
|
24 |
-
model_id = "tarteel-ai/whisper-base-ar-quran" # update with your model id
|
25 |
-
pipe = pipeline("automatic-speech-recognition", model=model_id)
|
26 |
|
27 |
# def transcribe(filepath):
|
28 |
# output = pipe(
|
@@ -39,4 +39,7 @@ pipe = pipeline("automatic-speech-recognition", model=model_id)
|
|
39 |
# outputs="text",
|
40 |
# )
|
41 |
|
42 |
-
# iface.launch()
|
|
|
|
|
|
|
|
19 |
|
20 |
|
21 |
|
22 |
+
# from transformers import pipeline
|
23 |
|
24 |
+
# model_id = "tarteel-ai/whisper-base-ar-quran" # update with your model id
|
25 |
+
# pipe = pipeline("automatic-speech-recognition", model=model_id)
|
26 |
|
27 |
# def transcribe(filepath):
|
28 |
# output = pipe(
|
|
|
39 |
# outputs="text",
|
40 |
# )
|
41 |
|
42 |
+
# iface.launch()
|
43 |
+
import gradio as gr
|
44 |
+
|
45 |
+
gr.Interface.load("models/tarteel-ai/whisper-base-ar-quran").launch()
|