runtime error
Exit code: 1. Reason: | 762/762 [00:00<00:00, 4.08MB/s] config.json: 0%| | 0.00/583 [00:00<?, ?B/s][A config.json: 100%|██████████| 583/583 [00:00<00:00, 3.80MB/s] The repository nikhil061307/contrastive-learning-bert-added-token-v5 contains custom code which must be executed to correctly load the model. You can inspect the repository content at https://hf.co/nikhil061307/contrastive-learning-bert-added-token-v5 . You can inspect the repository content at https://hf.co/nikhil061307/contrastive-learning-bert-added-token-v5. You can avoid this prompt in future by passing the argument `trust_remote_code=True`. Traceback (most recent call last): File "/usr/local/lib/python3.10/site-packages/transformers/dynamic_module_utils.py", line 722, in resolve_trust_remote_code answer = input( EOFError: EOF when reading a line During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/user/app/app.py", line 9, in <module> model = AutoModel.from_pretrained(model_name) File "/usr/local/lib/python3.10/site-packages/transformers/models/auto/auto_factory.py", line 549, in from_pretrained config, kwargs = AutoConfig.from_pretrained( File "/usr/local/lib/python3.10/site-packages/transformers/models/auto/configuration_auto.py", line 1297, in from_pretrained trust_remote_code = resolve_trust_remote_code( File "/usr/local/lib/python3.10/site-packages/transformers/dynamic_module_utils.py", line 734, in resolve_trust_remote_code raise ValueError( ValueError: The repository nikhil061307/contrastive-learning-bert-added-token-v5 contains custom code which must be executed to correctly load the model. You can inspect the repository content at https://hf.co/nikhil061307/contrastive-learning-bert-added-token-v5 . You can inspect the repository content at https://hf.co/nikhil061307/contrastive-learning-bert-added-token-v5. Please pass the argument `trust_remote_code=True` to allow custom code to be run. Do you wish to run the custom code? [y/N]
Container logs:
Fetching error logs...