Update app.py
Browse files
app.py
CHANGED
@@ -16,6 +16,7 @@ def query(image, texts, threshold):
|
|
16 |
predictions = detector(
|
17 |
image,
|
18 |
candidate_labels=texts,
|
|
|
19 |
)
|
20 |
print(predictions)
|
21 |
result_labels = []
|
|
|
16 |
predictions = detector(
|
17 |
image,
|
18 |
candidate_labels=texts,
|
19 |
+
threshold=threshold
|
20 |
)
|
21 |
print(predictions)
|
22 |
result_labels = []
|