Update handler.py
Browse files- handler.py +1 -1
handler.py
CHANGED
|
@@ -114,6 +114,6 @@ class EndpointHandler():
|
|
| 114 |
sorted_ids = torch.argsort(law_token_probs, descending=True)[:topk]
|
| 115 |
print([self.law_token_names[x] for x in sorted_ids])
|
| 116 |
token_objects = [
|
| 117 |
-
self.law_lookup.get_law_from_token(self.law_token_names[x])
|
| 118 |
for x in sorted_ids.tolist()]
|
| 119 |
return {"tokens": token_objects}
|
|
|
|
| 114 |
sorted_ids = torch.argsort(law_token_probs, descending=True)[:topk]
|
| 115 |
print([self.law_token_names[x] for x in sorted_ids])
|
| 116 |
token_objects = [
|
| 117 |
+
self.law_lookup.get_law_from_token(self.law_token_names[x])
|
| 118 |
for x in sorted_ids.tolist()]
|
| 119 |
return {"tokens": token_objects}
|