mirror of
https://github.com/modelscope/FunASR
synced 2025-09-15 14:48:36 +08:00
fix: fix input download logic (#1929)
This commit is contained in:
parent
bd352983c6
commit
85c1675e7c
@ -76,7 +76,7 @@ def load_audio_text_image_video(
|
||||
for audio in data_or_path_or_list
|
||||
]
|
||||
if isinstance(data_or_path_or_list, str) and data_or_path_or_list.startswith(
|
||||
"http"
|
||||
("http://", "https://")
|
||||
): # download url to local file
|
||||
data_or_path_or_list = download_from_url(data_or_path_or_list)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user