MCPcopy Create free account
hub / github.com/modelscope/modelscope / get_task_schemas

Function get_task_schemas

modelscope/utils/input_output.py:838–844  ·  view source on GitHub ↗
(task)

Source from the content-addressed store, hash-verified

836
837
838def get_task_schemas(task):
839 current_work_dir = os.path.dirname(__file__)
840 with open(current_work_dir + '/pipeline_schema.json', 'r') as f:
841 schema = json.load(f)
842 if task in schema:
843 return schema[task]
844 return None
845
846
847if __name__ == '__main__':

Callers 1

_startup_modelFunction · 0.90

Calls 1

loadMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…