mirror of
https://github.com/modelscope/FunASR
synced 2025-09-15 14:48:36 +08:00
emotion2vec
This commit is contained in:
parent
2139ef696b
commit
fdafd3f6bc
1
MinMo_gitlab
Symbolic link
1
MinMo_gitlab
Symbolic link
@ -0,0 +1 @@
|
||||
../MinMo_gitlab
|
||||
@ -16,6 +16,7 @@ model = AutoModel(
|
||||
# vad_model="iic/speech_fsmn_vad_zh-cn-16k-common-pytorch",
|
||||
# vad_model_revision="master",
|
||||
# vad_kwargs={"max_single_segment_time": 2000},
|
||||
hub="ms", # "ms" or "modelscope" for Mainland China users; "hf" or "huggingface" for Other overseas users
|
||||
)
|
||||
|
||||
wav_file = f"{model.model_path}/example/test.wav"
|
||||
|
||||
@ -7,9 +7,9 @@ from funasr.download.name_maps_from_hub import name_maps_ms, name_maps_hf, name_
|
||||
|
||||
def download_model(**kwargs):
|
||||
hub = kwargs.get("hub", "ms")
|
||||
if hub == "ms":
|
||||
if hub == "ms" or hub == "modelscope":
|
||||
kwargs = download_from_ms(**kwargs)
|
||||
elif hub == "hf":
|
||||
elif hub == "hf" or hub == "huggingface":
|
||||
kwargs = download_from_hf(**kwargs)
|
||||
elif hub == "openai":
|
||||
model_or_path = kwargs.get("model")
|
||||
|
||||
Loading…
Reference in New Issue
Block a user