fix: fix input download logic (#1929)

This commit is contained in:
凪咲 2024-07-19 10:26:58 +08:00 committed by GitHub
parent bd352983c6
commit 85c1675e7c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)