Fix error "modelscope attributeerror: 'dict' object has no attribute 'task_name' " (#800)

This commit is contained in:
wertycn
2024-03-12 20:34:25 +08:00
committed by GitHub
parent c350c2446c
commit 0ecff264c0

View File

@@ -648,7 +648,7 @@ def call_pipeline_with_json(pipeline_info: PipelineInfomation,
# result = pipeline(**pipeline_inputs)
# else:
pipeline_inputs, parameters = service_base64_input_to_pipeline_input(
pipeline_info.task_name, body)
pipeline_info['task_name'], body)
result = pipeline(pipeline_inputs, **parameters)
return result