I was hoping to use
cached_path to download a file from a GitHub release. The motivation was to attach my pretrained AllenNLP model (
model.tar.gz) to a GitHub release and then use
cached_path to download it. This way a user could just supply a model name and I could map it to the actual URL, and then download/cache the model on their system.
However, I get a 403 error when I try this:
from allennlp.common.file_utils import cached_path cached_path("https://github.com/JohnGiorgi/DeCLUTR/releases/download/v0.1.0rc1/declutr_small.tar.gz")
although I can access it with
wget no problem:
Is there a way
cached_path can be used to acheive this?