elina12 commited on
Commit
43ba0a4
1 Parent(s): dc820d1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -4
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()