Failed to resolve 'huggingface.co' problem in HF Spaces Building

hi @michellehbn , thanks for your in-time help!

just now i’ve tried to restart all my “Runtime Error” and “Sleeping” Spaces, luckily, most of them run well now. But i still feel the waiting time is longer than before.

and one of my Spaces:https://huggingface.co/spaces/Liusuthu/Copy-Facial-Expression-Recognition is still not working, the error messages are below:

Error loading model: HTTPSConnectionPool(host='huggingface.co', port=443): Max retries exceeded with url: /ElenaRyumina/face_emotion_recognition/resolve/main/FER_static_ResNet50_AffectNet.pt (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x7f83e3b23520>: Failed to resolve 'huggingface.co' ([Errno -3] Temporary failure in name resolution)"))
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/torch/serialization.py", line 531, in _check_seekable
    f.seek(f.tell())
AttributeError: 'NoneType' object has no attribute 'seek'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/user/app/app.py", line 14, in <module>
    from app_utils import preprocess_image_and_predict, preprocess_video_and_predict, preprocess_video_and_rank
  File "/home/user/app/app_utils.py", line 17, in <module>
    from model import pth_model_static, pth_model_dynamic, cam, pth_processing
  File "/home/user/app/model.py", line 33, in <module>
    pth_model_static.load_state_dict(torch.load(path_static))
  File "/usr/local/lib/python3.10/site-packages/torch/serialization.py", line 986, in load
    with _open_file_like(f, 'rb') as opened_file:
  File "/usr/local/lib/python3.10/site-packages/torch/serialization.py", line 440, in _open_file_like
    return _open_buffer_reader(name_or_buffer)
  File "/usr/local/lib/python3.10/site-packages/torch/serialization.py", line 425, in __init__
    _check_seekable(buffer)
  File "/usr/local/lib/python3.10/site-packages/torch/serialization.py", line 534, in _check_seekable
    raise_err_msg(["seek", "tell"], e)
  File "/usr/local/lib/python3.10/site-packages/torch/serialization.py", line 527, in raise_err_msg
    raise type(e)(msg)
AttributeError: 'NoneType' object has no attribute 'seek'. You can only torch.load from a file that is seekable. Please pre-load the data into a buffer like io.BytesIO and try to load from it instead.

i manually looked into the model:
https://huggingface.co/ElenaRyumina/face_emotion_recognition/tree/main,
every thing is just there(so it’s not because the files are deleted), so i think there are still some HTTPConnect problems, do you have any idea about it?

thanks again!! :smiley: