elina12 commited on
Commit
0b8f74d
1 Parent(s): 492b047

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -8
app.py CHANGED
@@ -1,14 +1,7 @@
1
- # import gradio as gr
2
-
3
- # model_interface = gr.Interface.load("models/jonatasgrosman/wav2vec2-large-xlsr-53-arabic", wait=True)
4
- # model_interface.launch()
5
- # Use a pipeline as a high-level helper
6
-
7
-
8
  from transformers import pipeline
9
  import gradio as gr
10
 
11
- pipe = pipeline(model="jonatasgrosman/wav2vec2-large-xlsr-53-arabic") # change to "your-username/the-name-you-picked"
12
 
13
  def transcribe(audio):
14
  text = pipe(audio)["text"]
 
 
 
 
 
 
 
 
1
  from transformers import pipeline
2
  import gradio as gr
3
 
4
+ pipe = pipeline(model="jonatasgrosman/wav2vec2-large-xlsr-53-arabic")
5
 
6
  def transcribe(audio):
7
  text = pipe(audio)["text"]