Thomasboosinger
commited on
Commit
•
0606046
1
Parent(s):
e0734d3
Update handler.py
Browse files- handler.py +1 -1
handler.py
CHANGED
@@ -27,6 +27,6 @@ class EndpointHandler:
|
|
27 |
image = Image.open(BytesIO(base64.b64decode(data['inputs']['image'])))
|
28 |
|
29 |
# Run detection and obtain results.
|
30 |
-
results = self.pipeline(image=image, candidate_labels=data['inputs']['candidates'])
|
31 |
|
32 |
return results
|
|
|
27 |
image = Image.open(BytesIO(base64.b64decode(data['inputs']['image'])))
|
28 |
|
29 |
# Run detection and obtain results.
|
30 |
+
results = self.pipeline(image=image, candidate_labels=data['inputs']['candidates'], threshold = .01)
|
31 |
|
32 |
return results
|