Update README.md
Browse files
README.md
CHANGED
@@ -75,6 +75,7 @@ def get_embedding(last_hidden_state: torch.Tensor, dimension: int) -> torch.Tens
|
|
75 |
### Encode Text Query
|
76 |
|
77 |
```python
|
|
|
78 |
queries = ["Where can we see Llama?", "What is LLaMA model?"]
|
79 |
query_messages = []
|
80 |
for query in queries:
|
@@ -103,7 +104,6 @@ query_embeddings = get_embedding(output.hidden_states[-1], 1536) # adjust dimens
|
|
103 |
### Encode Document Screenshot
|
104 |
|
105 |
```python
|
106 |
-
from PIL import Image
|
107 |
import requests
|
108 |
from io import BytesIO
|
109 |
|
|
|
75 |
### Encode Text Query
|
76 |
|
77 |
```python
|
78 |
+
from PIL import Image
|
79 |
queries = ["Where can we see Llama?", "What is LLaMA model?"]
|
80 |
query_messages = []
|
81 |
for query in queries:
|
|
|
104 |
### Encode Document Screenshot
|
105 |
|
106 |
```python
|
|
|
107 |
import requests
|
108 |
from io import BytesIO
|
109 |
|