Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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,
|
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"]
|