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

Function get_task_input_examples

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

Source from the content-addressed store, hash-verified

827
828
829def get_task_input_examples(task):
830 current_work_dir = os.path.dirname(__file__)
831 with open(current_work_dir + '/pipeline_inputs.json', 'r') as f:
832 input_examples = json.load(f)
833 if task in input_examples:
834 return input_examples[task]
835 return None
836
837
838def get_task_schemas(task):

Callers 3

check_modelMethod · 0.90
_startup_modelFunction · 0.90
test_singleMethod · 0.90

Calls 1

loadMethod · 0.45

Tested by 1

test_singleMethod · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…