merve HF staff commited on
Commit
26d69fc
β€’
1 Parent(s): 9617fed

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
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 = []