Revert "Use code on the Hub from another repo" (#22813)
Revert "Use code on the Hub from another repo (#22698)"
This reverts commit ea7b0a539a.
This commit is contained in:
@@ -727,8 +727,9 @@ def pipeline(
|
||||
" set the option `trust_remote_code=True` to remove this error."
|
||||
)
|
||||
class_ref = targeted_task["impl"]
|
||||
module_file, class_name = class_ref.split(".")
|
||||
pipeline_class = get_class_from_dynamic_module(
|
||||
class_ref, model, revision=revision, use_auth_token=use_auth_token
|
||||
model, module_file + ".py", class_name, revision=revision, use_auth_token=use_auth_token
|
||||
)
|
||||
else:
|
||||
normalized_task, targeted_task, task_options = check_task(task)
|
||||
|
||||
Reference in New Issue
Block a user