mirror of
https://github.com/modelscope/FunASR
synced 2025-09-15 14:48:36 +08:00
commit
b091828cea
@ -430,7 +430,7 @@ class Speech2TextParaformer:
|
||||
|
||||
# b. Forward Encoder
|
||||
if decoding_ind is None:
|
||||
decoding_ind = self.decoding_ind
|
||||
decoding_ind = 0 if self.decoding_ind is None else self.decoding_ind
|
||||
enc, enc_len = self.asr_model.encode(**batch, ind=decoding_ind)
|
||||
if isinstance(enc, tuple):
|
||||
enc = enc[0]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user