[Bugfix] Fix Qwen3ASR language asr tag in output (#33410)

Signed-off-by: NickLucche <nlucches@redhat.com>
This commit is contained in:
Nicolò Lucchesi
2026-01-31 06:24:49 +01:00
committed by GitHub
parent 8ecd213c0b
commit e77f162cf5
3 changed files with 42 additions and 2 deletions

View File

@@ -1145,6 +1145,22 @@ class SupportsTranscription(Protocol):
"""
return None
@classmethod
def post_process_output(cls, text: str) -> str:
"""
Post-process the raw model output text.
Some ASR models output structured formats (e.g., language tags,
special tokens) that need to be stripped before returning to the user.
Args:
text: Raw decoded text from the model.
Returns:
Cleaned transcription text.
"""
return text
@overload
def supports_transcription(