mirror of
https://github.com/modelscope/modelscope.git
synced 2025-12-17 00:37:43 +01:00
fix check model (#1134)
This commit is contained in:
@@ -39,6 +39,7 @@ def check_local_model_is_latest(
|
|||||||
"""
|
"""
|
||||||
try:
|
try:
|
||||||
model_id = get_model_id_from_cache(model_root_path)
|
model_id = get_model_id_from_cache(model_root_path)
|
||||||
|
model_id = model_id.replace('___', '.')
|
||||||
# make headers
|
# make headers
|
||||||
headers = {
|
headers = {
|
||||||
'user-agent':
|
'user-agent':
|
||||||
|
|||||||
Reference in New Issue
Block a user