mirror of
https://github.com/modelscope/FunASR.git
synced 2026-10-12 02:19:18 +00:00
fix: fix input download logic (#1929)
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user