LLM: fix version control (#8342)

This commit is contained in:
Ruonan Wang 2023-06-15 15:18:50 +08:00 committed by GitHub
parent f7f4e65788
commit 9fda7e34f1

View file

@ -99,7 +99,9 @@ def obtain_lib_urls():
for binary in binarys: for binary in binarys:
if binary in binary_url: if binary in binary_url:
continue continue
if binary in text: # Filename hard matching
match_pattern = "\"name\":\"{}\"".format(binary)
if match_pattern in text:
lib_url = url + binary lib_url = url + binary
binary_url[binary] = lib_url binary_url[binary] = lib_url
download_num -= 1 download_num -= 1