Gopal2002 Amlan99 commited on
Commit
24e8e50
·
verified ·
1 Parent(s): 63a5a82

Update app.py (#1)

Browse files

- Update app.py (bd43d4e67050d72ce1d58bb10d529343da942876)


Co-authored-by: Amlan Das <[email protected]>

Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -100,7 +100,7 @@ def embed(req: EmbedRequest):
100
  return_multivector=True,
101
  )
102
 
103
- window_embeds = outputs.squeeze(0).cpu() # (window_len, hidden_dim)
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: