mirror of
https://github.com/modelscope/FunASR.git
synced 2026-10-12 02:19:18 +00:00
docs: add class docstrings to qwen_audio and whisper models
This commit is contained in:
@@ -102,6 +102,12 @@ class QwenAudioWarp(nn.Module):
|
||||
@tables.register("model_classes", "QwenAudioChat")
|
||||
@tables.register("model_classes", "QwenAudioChatWarp")
|
||||
class QwenAudioChatWarp(nn.Module):
|
||||
"""QwenAudioChat: Qwen Audio Chat model wrapper.
|
||||
|
||||
Interactive audio chat using the Qwen-Audio-Chat model.
|
||||
Supports multi-turn conversation about audio content.
|
||||
"""
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
"""
|
||||
Qwen-Audio: Advancing Universal Audio Understanding via Unified Large-Scale Audio-Language Models
|
||||
|
||||
@@ -31,6 +31,15 @@ from funasr.register import tables
|
||||
@tables.register("model_classes", "Whisper-large-v3-turbo")
|
||||
@tables.register("model_classes", "WhisperWarp")
|
||||
class WhisperWarp(nn.Module):
|
||||
"""Whisper: OpenAI Whisper model integration.
|
||||
|
||||
Wraps Whisper for multilingual speech recognition and translation
|
||||
within FunASR's AutoModel interface.
|
||||
|
||||
Supports: whisper-tiny through whisper-large-v3-turbo.
|
||||
Output: {"key": str, "text": str}
|
||||
"""
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
"""Initialize WhisperWarp.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user