Fix add new model like frameworks (#17869)
Fix add new model like frameworks (#17869)

* Add new model like adds only the selected frameworks object in init

* Small fix
huggingface/transformers,huggingface/transformers,huggingface/transformers,huggingface/transformers