Make warning disappear for remote code in pipelines
# What does this PR do?

Currently, loading a pipeline with a model that has its code on the Hub will result in a warning that the model is not in the right auto class. This PR adds the custom class in the auto mapping so that this warning is not triggered.

Related to #24598
_The documentation is not available anymore as the PR was closed or merged._