Skip to content

Commit 3cbed04

Browse files
authored
Fix HuggingFace token PermissionError in similar talks (#4568)
1 parent b06be65 commit 3cbed04

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

backend/reviews/similar_talks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ def get_stopwords_for_languages(language_codes: set[str]) -> set[str]:
219219
@functools.cache
220220
def get_embedding_model():
221221
"""Get or create the shared embedding model instance."""
222-
return SentenceTransformer("all-MiniLM-L6-v2")
222+
return SentenceTransformer("all-MiniLM-L6-v2", token=False)
223223

224224

225225
def get_embedding_text(submission) -> str:

0 commit comments

Comments
 (0)