fahadqazi commited on
Commit
17e2033
·
verified ·
1 Parent(s): 20469bf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -12,7 +12,7 @@ auth_token = os.environ.get("hf_token")
12
  if not auth_token:
13
  raise ValueError("Hugging Face token is missing! Add it as a secret.")
14
 
15
- pipe = pipeline(model="fahadqazi/whisper-small-sindhi", device=device, use_auth_token=auth_token, token=auth_token) # change to "your-username/the-name-you-picked"
16
 
17
  def transcribe(audio):
18
  text = pipe(audio)["text"]
 
12
  if not auth_token:
13
  raise ValueError("Hugging Face token is missing! Add it as a secret.")
14
 
15
+ pipe = pipeline(model="fahadqazi/whisper-small-sindhi", device=device, token=auth_token) # change to "your-username/the-name-you-picked"
16
 
17
  def transcribe(audio):
18
  text = pipe(audio)["text"]