Update app.py (#1)
Browse files- Update app.py (bd43d4e67050d72ce1d58bb10d529343da942876)
Co-authored-by: Amlan Das <[email protected]>
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:
|