mirror of
https://github.com/modelscope/modelscope.git
synced 2026-05-18 05:05:00 +02:00
Fix pipeline parameter (#1717)
This commit is contained in:
@@ -245,7 +245,10 @@ def pipeline(task: str = None,
|
||||
if preprocessor is not None:
|
||||
cfg.preprocessor = preprocessor
|
||||
|
||||
return build_pipeline(cfg, task_name=task)
|
||||
return build_pipeline(
|
||||
cfg,
|
||||
task_name=task,
|
||||
default_args={'trust_remote_code': trust_remote_code})
|
||||
|
||||
|
||||
def add_default_pipeline_info(task: str,
|
||||
|
||||
Reference in New Issue
Block a user