vhr1007 commited on
Commit
0d39dda
·
1 Parent(s): f8872d2

add write permission

Browse files
Files changed (1) hide show
  1. utils/embedding_utils.py +1 -1
utils/embedding_utils.py CHANGED
@@ -22,7 +22,7 @@ huggingface_token = os.getenv('HUGGINGFACE_HUB_TOKEN')
22
 
23
 
24
  if huggingface_token:
25
- login(token=huggingface_token, add_to_git_credential=True)
26
  else:
27
  raise ValueError("Hugging Face token is not set. Please set the HUGGINGFACE_HUB_TOKEN environment variable.")
28
 
 
22
 
23
 
24
  if huggingface_token:
25
+ login(token=huggingface_token, add_to_git_credential=True, write_permission=True)
26
  else:
27
  raise ValueError("Hugging Face token is not set. Please set the HUGGINGFACE_HUB_TOKEN environment variable.")
28