Yes! I changed a little structure
and here is the code for the same,
from transformers import AutoTokenizer, AutoModel
model = AutoModel.from_pretrained(r"E:\model\model")
tokenizer = AutoTokenizer.from_pretrained(r"E:\model\tokenizer")
I am getting an error which is ValueError : unable to parse E:\model\model\config.json as a URL or as a local path