bwang0911 commited on
Commit
a14a952
1 Parent(s): 59d9a6b

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +0 -16
README.md CHANGED
@@ -1146,22 +1146,6 @@ embeddings = F.normalize(embeddings, p=2, dim=1)
1146
 
1147
  You can use Jina Embedding models directly from transformers package.
1148
 
1149
- First, you need to make sure that you are logged into huggingface. You can either use the huggingface-cli tool (after installing the `transformers` package) and pass your [hugginface access token](https://huggingface.co/docs/hub/security-tokens):
1150
- ```bash
1151
- huggingface-cli login
1152
- ```
1153
- Alternatively, you can provide the access token as an environment variable in the shell:
1154
- ```bash
1155
- export HF_TOKEN="<your token here>"
1156
- ```
1157
- or in Python:
1158
- ```python
1159
- import os
1160
-
1161
- os.environ['HF_TOKEN'] = "<your token here>"
1162
- ```
1163
-
1164
- Then, you can use load and use the model via the `AutoModel` class:
1165
  ```python
1166
  !pip install transformers
1167
  from transformers import AutoModel
 
1146
 
1147
  You can use Jina Embedding models directly from transformers package.
1148
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1149
  ```python
1150
  !pip install transformers
1151
  from transformers import AutoModel