MCPcopy Index your code
hub / github.com/modelscope/modelscope / __is_develop_model

Function __is_develop_model

modelscope/utils/ast_utils.py:670–680  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

668
669
670def __is_develop_model():
671 # use the trick of release time check is in development
672 release_timestamp = int(
673 round(
674 datetime.strptime(version.__release_datetime__,
675 '%Y-%m-%d %H:%M:%S').timestamp()))
676 SECONDS_PER_YEAR = 24 * 365 * 60 * 60
677 current_timestamp = int(round(datetime.now().timestamp()))
678 if release_timestamp > current_timestamp + SECONDS_PER_YEAR:
679 return True
680 return False
681
682
683def load_index(

Callers 1

load_indexFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…