Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -44,7 +44,7 @@ def encode(text: str):
|
|
44 |
indices = sparse_vec.nonzero().squeeze().cpu().tolist()
|
45 |
values = sparse_vec[indices].cpu().tolist()
|
46 |
sparse_dict = {"indices": indices, "values": values}
|
47 |
-
# return
|
48 |
return dense_vec, sparse_dict
|
49 |
|
50 |
def search(query):
|
|
|
44 |
indices = sparse_vec.nonzero().squeeze().cpu().tolist()
|
45 |
values = sparse_vec[indices].cpu().tolist()
|
46 |
sparse_dict = {"indices": indices, "values": values}
|
47 |
+
# return vecss
|
48 |
return dense_vec, sparse_dict
|
49 |
|
50 |
def search(query):
|