Spaces:
Sleeping
Sleeping
jonathanjordan21
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -430,7 +430,8 @@ def respond(
|
|
430 |
text_emb = model.encode(message)
|
431 |
scores = cos_sim(codes_emb, text_emb).mean(axis=-1)#[:,0]
|
432 |
|
433 |
-
scores_argsort = scores.argsort(
|
|
|
434 |
|
435 |
if is_multiple:
|
436 |
request_details = []
|
|
|
430 |
text_emb = model.encode(message)
|
431 |
scores = cos_sim(codes_emb, text_emb).mean(axis=-1)#[:,0]
|
432 |
|
433 |
+
scores_argsort = scores.argsort(descending=True)
|
434 |
+
#[::-1]
|
435 |
|
436 |
if is_multiple:
|
437 |
request_details = []
|