Update README.md
Browse files
README.md
CHANGED
|
@@ -65,7 +65,7 @@ To fix it safely, add this code before loading:
|
|
| 65 |
import torch
|
| 66 |
torch.serialization.add_safe_globals([set])
|
| 67 |
```
|
| 68 |
-
This whitelists set and allows safe loading with weights_only=True
|
| 69 |
|
| 70 |
Otherwise, never disable weights_only unless you 100% trust the file.
|
| 71 |
|
|
|
|
| 65 |
import torch
|
| 66 |
torch.serialization.add_safe_globals([set])
|
| 67 |
```
|
| 68 |
+
This whitelists set and allows safe loading with `weights_only=True`.
|
| 69 |
|
| 70 |
Otherwise, never disable weights_only unless you 100% trust the file.
|
| 71 |
|