Transformer is unable to download into a space
Resolved (the space built correctly finally but not sure what the issue was or what fixed it):Hi, I am using the following transformer in the linked space and in previous days had no issues but am encountering troubles now. The logs show:Downloading (…)lve/main/config.json:   0%|          | 0.00/793 [00:00<?, ?B/s]Downloading (…)lve/main/config.json: 100%|██████████| 793/793 [00:00<00:00, 445kB/s]As you can see, the first download never begins and the space hangs until eventually erroring due to timeout. I don’t have any issues when running the same code locally and had no issues with this in my space yesterday (no changes were made that affected this transformer and the repo it is being pulled from hasn’t been updated in 2 weeks).The code:mood_model = ViTForImageClassification.from_pretrained("jayanta/google-vit-base-patch16-224-cartoon-emotion-detection")
mood_model.eval()
mood_model.to(device)
mood_feature_extractor = ViTImageProcessor.from_pretrained("jayanta/google-vit-base-patch16-224-cartoon-emotion-detection")huggingface.cojayanta/google-vit-base-patch16-224-cartoon-emotion-detection · Hugging FaceWe’re on a journey to advance and democratize artificial intelligence through open source and open science.huggingface.coImage To Music - a Hugging Face Space by BokanovskiiDiscover amazing ML apps made by the community
2024-01-25T03:07:29Z
Did you ever find a solution? I’m having a similar problem.