msis commited on
Commit
a7e1d74
1 Parent(s): f0128f1

adds env token

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="tarteel-ai/whisper-tiny-ar-quran", use_auth_token=True) # change to "your-username/the-name-you-picked"
 
5
 
6
  def transcribe(audio):
7
  text = pipe(audio)["text"]
 
1
+ import os
2
  from transformers import pipeline
3
  import gradio as gr
4
 
5
+
6
+ pipe = pipeline(model="tarteel-ai/whisper-tiny-ar-quran", use_auth_token=os.environ["HF_TARTEEL_TOKEN"]) # change to "your-username/the-name-you-picked"
7
 
8
  def transcribe(audio):
9
  text = pipe(audio)["text"]