jonathanjordan21 commited on
Commit
1ca4016
·
verified ·
1 Parent(s): f3f9dff

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -53,7 +53,7 @@ def respond(
53
  plate_numbers = ", ".join([" ".join(x) for i,x in enumerate(matches)])
54
 
55
  codes_emb = model.encode(codes)
56
- text_emb = model.encode(query)
57
  scores = cos_sim(codes_emb, text_emb)[:,0]
58
 
59
  request_code = codes[scores.argmax()]
 
53
  plate_numbers = ", ".join([" ".join(x) for i,x in enumerate(matches)])
54
 
55
  codes_emb = model.encode(codes)
56
+ text_emb = model.encode(message)
57
  scores = cos_sim(codes_emb, text_emb)[:,0]
58
 
59
  request_code = codes[scores.argmax()]