jonathanjordan21 commited on
Commit
5f778f1
·
verified ·
1 Parent(s): 8cc5910

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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(scores)[::-1]
 
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 = []