-
Notifications
You must be signed in to change notification settings - Fork 225
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: add SenseVoice as a library. #790
base: main
Are you sure you want to change the base?
Conversation
@@ -200,6 +200,13 @@ export const MODEL_LIBRARIES_UI_ELEMENTS = { | |||
filter: true, | |||
countDownloads: `path:"pytorch_model.bin"`, | |||
}, | |||
SenseVoice: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's lowercase it to be consistent with other libraries. It requires to update https://huggingface.co/FunAudioLLM/SenseVoiceSmall/discussions/1 as well.
SenseVoice: { | |
sensevoice: { |
(EDIT: or sense-voice
if you prefer it this way)
@@ -200,6 +200,13 @@ export const MODEL_LIBRARIES_UI_ELEMENTS = { | |||
filter: true, | |||
countDownloads: `path:"pytorch_model.bin"`, | |||
}, | |||
SenseVoice: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we also add funasr
?
repoName: "SenseVoice", | ||
repoUrl: "https://github.com/FunAudioLLM/SenseVoice", | ||
filter: false, | ||
countDownloads: `path:"model.pt"`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need to add this rule. The repo has a config.yaml
file which is part of the default set
prettyLabel: "SenseVoice", | ||
repoName: "SenseVoice", | ||
repoUrl: "https://github.com/FunAudioLLM/SenseVoice", | ||
filter: false, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would add a snippt similar to
from model import SenseVoiceSmall
model_dir = "iic/SenseVoiceSmall"
m, kwargs = SenseVoiceSmall.from_pretrained(model=model_dir)
res = m.inference(
data_in="https://isv-data.oss-cn-hangzhou.aliyuncs.com/ics/MaaS/ASR/test_audio/asr_example_zh.wav",
language="auto", # "zn", "en", "yue", "ja", "ko", "nospeech"
use_itn=False,
**kwargs,
)
No description provided.