推理过程中,灰色待确认气泡现在会随 Qwen 最新临时结果更新,允许文字回改;定稿仍走原有处理流程,最终结果会替换临时气泡
parent
fb710fadff
commit
67b5542b15
|
|
@ -3156,11 +3156,18 @@ class Qwen3ASRService:
|
|||
ctx,
|
||||
visible_observed,
|
||||
)
|
||||
partial_display = self._append_only_partial_preview(
|
||||
ctx,
|
||||
visible_observed,
|
||||
native_stream_snapshot=has_native_stream_snapshot,
|
||||
)
|
||||
if has_native_stream_snapshot:
|
||||
# 灰色待确认气泡用于展示 Qwen 当前快照,允许它随模型修正;
|
||||
# final 候选仍使用上面的稳定文本,避免演示预览影响定稿。
|
||||
partial_display = self._trim_previous_segment_overlap(
|
||||
ctx,
|
||||
current,
|
||||
)
|
||||
else:
|
||||
partial_display = self._append_only_partial_preview(
|
||||
ctx,
|
||||
visible_observed,
|
||||
)
|
||||
partial_display = self._clip_partial_text(partial_display, ctx)
|
||||
if (
|
||||
partial_display
|
||||
|
|
|
|||
Loading…
Reference in New Issue