Spaces:
Sleeping
Sleeping
jonathanjordan21
commited on
Update app.py
Browse files
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(
|
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()]
|