Can't connect to huggingface

I am trying download a new AutoTrain Model using

from transformers import AutoModelForSequenceClassification, AutoTokenizer

model = AutoModelForSequenceClassification.from_pretrained(“judy93536/autotrain- albert_pretrain_news_tuned_signews_perigon-78609140979”, use_auth_token=True)

I am getting

NameError: name ‘connection_requires_http_tunnel’ is not defined

OSError: Can’t load the configuration of ‘judy93536/autotrain-distilrobert_pretrained_news_tuned_signews_perigon-78604140970’. If you were trying to load it from ‘Models - Hugging Face’, make sure you don’t have a local directory with the same name. Otherwise, make sure ‘judy93536/autotrain-distilrobert_pretrained_news_tuned_signews_perigon-78604140970’ is the correct path to a directory containing a config.json file

I have been using this interface, never had this problem, I am using
transformers == 4.31.0.dev0

Could there be a problem with with the hub?

I wanted to provide an update. I restarted my system and everything is now working.

Thanks for your time!

1 Like