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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -1,7 +1,9 @@
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"]
 
1
  from transformers import pipeline
2
  import gradio as gr
3
+ #add
4
+ auth_token = os.environ.get("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") or True
5
 
6
+ pipe = pipeline(model="jonatasgrosman/wav2vec2-large-xlsr-53-arabic",use_auth_token=auth_token)
7
 
8
  def transcribe(audio):
9
  text = pipe(audio)["text"]