Skip to content

Commit f6fbdf3

Browse files
authored
Merge pull request #20 from jimmy92919/fix-duplex-offline
fix: add missing finalize() in DuplexView offline_inference to fix state machine error
2 parents 4b1d65e + d3102bf commit f6fbdf3

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

core/processors/unified.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1117,7 +1117,9 @@ def offline_inference(self, task_input: "DuplexOfflineInput") -> "DuplexOfflineO
11171117

11181118
# 生成
11191119
result = self.generate()
1120-
1120+
1121+
self.finalize()
1122+
11211123
chunk_elapsed = (time.time() - chunk_start) * 1000
11221124

11231125
# 记录结果

0 commit comments

Comments
 (0)