Hugging Face's logo
Agents
Runtime error

runtime error

Exit code: 1. Reason: default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/local/lib/python3.13/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/local/lib/python3.13/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ReadTimeout: The read operation timed out During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/app/app.py", line 15, in <module> model = ViTForImageClassification.from_pretrained(model_name) File "/usr/local/lib/python3.13/site-packages/transformers/modeling_utils.py", line 4103, in from_pretrained config, model_kwargs = config_class.from_pretrained( ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ config_path, ^^^^^^^^^^^^ ...<5 lines>... **kwargs, ^^^^^^^^^ ) ^ File "/usr/local/lib/python3.13/site-packages/transformers/configuration_utils.py", line 639, in from_pretrained config_dict, kwargs = cls.get_config_dict(pretrained_model_name_or_path, **kwargs) ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.13/site-packages/transformers/configuration_utils.py", line 680, in get_config_dict config_dict, kwargs = cls._get_config_dict(pretrained_model_name_or_path, **kwargs) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.13/site-packages/transformers/configuration_utils.py", line 757, in _get_config_dict raise OSError( ...<4 lines>... ) OSError: Can't load the configuration of 'google/vit-base-patch16-224'. If you were trying to load it from 'https://huggingface.co/models', make sure you don't have a local directory with the same name. Otherwise, make sure 'google/vit-base-patch16-224' is the correct path to a directory containing a config.json file

Container logs:

Fetching error logs...