Spaces:
Sleeping
Sleeping
vineelpratap
commited on
Commit
•
1b7f5da
1
Parent(s):
6f53272
Update asr.py
Browse files
asr.py
CHANGED
@@ -107,7 +107,7 @@ def transcribe(
|
|
107 |
with torch.no_grad():
|
108 |
outputs = model(**inputs).logits
|
109 |
|
110 |
-
if lang_code != "eng"
|
111 |
ids = torch.argmax(outputs, dim=-1)[0]
|
112 |
transcription = processor.decode(ids)
|
113 |
else:
|
|
|
107 |
with torch.no_grad():
|
108 |
outputs = model(**inputs).logits
|
109 |
|
110 |
+
if lang_code != "eng" or True:
|
111 |
ids = torch.argmax(outputs, dim=-1)[0]
|
112 |
transcription = processor.decode(ids)
|
113 |
else:
|