Skip to content

Commit 4e75142

Browse files
Update model.py
1 parent 15adc68 commit 4e75142

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/asr/fairseq_mms/local/model.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,7 @@ async def inference(self, request: ModelRequest):
3131

3232
ids = torch.argmax(outputs, dim=-1)[0]
3333
transcription = self.processor.decode(ids)
34+
if transcription == '':
35+
transcription = 'ଦୟାକରି ପୁଣିଥରେ ଚେଷ୍ଟା କରନ୍ତୁ'
3436

35-
return transcription
37+
return transcription

0 commit comments

Comments
 (0)