Commit d72a748
committed
Fix HuggingFace token PermissionError when loading embedding model
Pass token=False to SentenceTransformer to skip reading the token file
at /root/.cache/huggingface/token, which fails with a PermissionError
in Docker. The all-MiniLM-L6-v2 model is public and needs no auth.1 parent b06be65 commit d72a748
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
219 | 219 | | |
220 | 220 | | |
221 | 221 | | |
222 | | - | |
| 222 | + | |
223 | 223 | | |
224 | 224 | | |
225 | 225 | | |
| |||
0 commit comments