Update README.md
Browse files
README.md
CHANGED
|
@@ -2646,7 +2646,7 @@ angle = AnglE.from_pretrained('WhereIsAI/UAE-Large-V1', pooling_strategy='cls').
|
|
| 2646 |
angle.set_prompt(prompt=Prompts.C)
|
| 2647 |
vec = angle.encode({'text': 'hello world'}, to_numpy=True)
|
| 2648 |
print(vec)
|
| 2649 |
-
vecs = angle.encode([{'text': 'hello world1', 'text': 'hello world2'}], to_numpy=True)
|
| 2650 |
print(vecs)
|
| 2651 |
```
|
| 2652 |
|
|
|
|
| 2646 |
angle.set_prompt(prompt=Prompts.C)
|
| 2647 |
vec = angle.encode({'text': 'hello world'}, to_numpy=True)
|
| 2648 |
print(vec)
|
| 2649 |
+
vecs = angle.encode([{'text': 'hello world1'}, {'text': 'hello world2'}], to_numpy=True)
|
| 2650 |
print(vecs)
|
| 2651 |
```
|
| 2652 |
|