File tree Expand file tree Collapse file tree 1 file changed +1
-12
lines changed
Expand file tree Collapse file tree 1 file changed +1
-12
lines changed Original file line number Diff line number Diff line change @@ -313,18 +313,7 @@ def _get_ngc_token(api_key, retry=0):
313313
314314
315315def _get_latest_bundle_version_monaihosting (name ):
316- full_url = f"{ MONAI_HOSTING_BASE_URL } /{ name .lower ()} "
317- if has_requests :
318- resp = requests .get (full_url )
319- try :
320- resp .raise_for_status ()
321- model_info = json .loads (resp .text )
322- return model_info ["model" ]["latestVersionIdStr" ]
323- except requests .exceptions .HTTPError :
324- # for monaihosting bundles, if cannot find the version, get from model zoo model_info.json
325- return get_bundle_versions (name )["latest_version" ]
326-
327- raise ValueError ("NGC API requires requests package. Please install it." )
316+ return get_bundle_versions (name , repo = "MONAI/model-zoo" , tag = "dev" )["latest_version" ]
328317
329318
330319def _examine_monai_version (monai_version : str ) -> tuple [bool , str ]:
You can’t perform that action at this time.
0 commit comments