mirror of
https://github.com/modelscope/modelscope.git
synced 2026-02-24 04:01:10 +01:00
fix ppl builder with pipeline_name
This commit is contained in:
@@ -173,6 +173,8 @@ def pipeline(task: str = None,
|
||||
pipeline_name, default_model_repo = get_default_pipeline_info(task)
|
||||
model = normalize_model_input(default_model_repo, model_revision)
|
||||
pipeline_props = {'type': pipeline_name}
|
||||
else:
|
||||
pipeline_props = {'type': pipeline_name}
|
||||
|
||||
pipeline_props['model'] = model
|
||||
pipeline_props['device'] = device
|
||||
|
||||
Reference in New Issue
Block a user