You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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