mirror of
https://github.com/modelscope/modelscope.git
synced 2026-02-24 04:01:10 +01:00
update timeout for checking model revision (#1507)
This commit is contained in:
@@ -53,7 +53,7 @@ def check_local_model_is_latest(
|
||||
'Snapshot': 'True'
|
||||
}
|
||||
}
|
||||
_api = HubApi(timeout=0.5)
|
||||
_api = HubApi(timeout=20)
|
||||
try:
|
||||
_, revisions = _api.get_model_branches_and_tags(
|
||||
model_id=model_id, use_cookies=cookies)
|
||||
|
||||
Reference in New Issue
Block a user