Spaces:
Running
on
T4
Running
on
T4
Update app.py
Browse files
app.py
CHANGED
@@ -26,6 +26,7 @@ def pipe(file):
|
|
26 |
token=auth_token,
|
27 |
)
|
28 |
asr.model.config.forced_decoder_ids = asr.tokenizer.get_decoder_prompt_ids(language=lang, task="transcribe")
|
|
|
29 |
|
30 |
def transcribe(file):
|
31 |
text = pipe(file)["text"]
|
|
|
26 |
token=auth_token,
|
27 |
)
|
28 |
asr.model.config.forced_decoder_ids = asr.tokenizer.get_decoder_prompt_ids(language=lang, task="transcribe")
|
29 |
+
return asr(file)
|
30 |
|
31 |
def transcribe(file):
|
32 |
text = pipe(file)["text"]
|