bwang0911 commited on
Commit
cfa5d3f
1 Parent(s): 36f17fe

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +0 -16
README.md CHANGED
@@ -2688,22 +2688,6 @@ embeddings = F.normalize(embeddings, p=2, dim=1)
2688
 
2689
  You can use Jina Embedding models directly from transformers package.
2690
 
2691
- 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):
2692
- ```bash
2693
- huggingface-cli login
2694
- ```
2695
- Alternatively, you can provide the access token as an environment variable in the shell:
2696
- ```bash
2697
- export HF_TOKEN="<your token here>"
2698
- ```
2699
- or in Python:
2700
- ```python
2701
- import os
2702
-
2703
- os.environ['HF_TOKEN'] = "<your token here>"
2704
- ```
2705
-
2706
- Then, you can use load and use the model via the `AutoModel` class:
2707
  ```python
2708
  !pip install transformers
2709
  from transformers import AutoModel
 
2688
 
2689
  You can use Jina Embedding models directly from transformers package.
2690
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2691
  ```python
2692
  !pip install transformers
2693
  from transformers import AutoModel