Skip to content

The model file is not being downloaded #127

@protestToViolence

Description

@protestToViolence

from detoxify import Detoxify
results = Detoxify('original').predict('example text')
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\asfac\anaconda3\envs\yoloe\lib\site-packages\detoxify\detoxify.py", line 104, in init
self.model, self.tokenizer, self.class_names = load_checkpoint(
File "C:\Users\asfac\anaconda3\envs\yoloe\lib\site-packages\detoxify\detoxify.py", line 41, in load_checkpoint
loaded = torch.hub.load_state_dict_from_url(checkpoint_path, map_location=device)
File "C:\Users\asfac\anaconda3\envs\yoloe\lib\site-packages\torch\hub.py", line 871, in load_state_dict_from_url
return torch.load(cached_file, map_location=map_location, weights_only=weights_only)
File "C:\Users\asfac\anaconda3\envs\yoloe\lib\site-packages\torch\serialization.py", line 1432, in load
with _open_zipfile_reader(opened_file) as opened_zipfile:
File "C:\Users\asfac\anaconda3\envs\yoloe\lib\site-packages\torch\serialization.py", line 763, in init
super().init(torch._C.PyTorchFileReader(name_or_buffer))
RuntimeError: PytorchStreamReader failed reading zip archive: failed finding central directory

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions