Update app.py
Browse files
app.py
CHANGED
@@ -100,7 +100,7 @@ def embed(req: EmbedRequest):
|
|
100 |
return_multivector=True,
|
101 |
)
|
102 |
|
103 |
-
window_embeds = outputs
|
104 |
|
105 |
# Drop overlapping tokens except in first window
|
106 |
if position > 0:
|
|
|
100 |
return_multivector=True,
|
101 |
)
|
102 |
|
103 |
+
window_embeds = outputs[0].cpu() # (window_len, hidden_dim)
|
104 |
|
105 |
# Drop overlapping tokens except in first window
|
106 |
if position > 0:
|