Update handler.py
Browse files- handler.py +1 -1
handler.py
CHANGED
@@ -22,7 +22,7 @@ class EndpointHandler():
|
|
22 |
|
23 |
for index, input_string in enumerate(inputs):
|
24 |
if input_string in self.cache:
|
25 |
-
cached_results[index] = self.cache[input_string]
|
26 |
else:
|
27 |
uncached_inputs.append((index, input_string))
|
28 |
|
|
|
22 |
|
23 |
for index, input_string in enumerate(inputs):
|
24 |
if input_string in self.cache:
|
25 |
+
cached_results[index] = self.cache[input_string]["pooler_output"]
|
26 |
else:
|
27 |
uncached_inputs.append((index, input_string))
|
28 |
|