Spaces:
awacke1
/
Runtime error

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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -11,14 +11,13 @@ sam_processor = SamProcessor.from_pretrained("facebook/sam-vit-base")
11
  @spaces.GPU
12
  def query(image, texts, threshold):
13
  texts = texts.split(",")
14
- print(texts)
15
- print(image.size)
16
  predictions = detector(
17
  image,
18
  candidate_labels=texts,
19
  threshold=threshold
20
  )
21
- print(predictions)
22
  result_labels = []
23
  for pred in predictions:
24
 
 
11
  @spaces.GPU
12
  def query(image, texts, threshold):
13
  texts = texts.split(",")
14
+
 
15
  predictions = detector(
16
  image,
17
  candidate_labels=texts,
18
  threshold=threshold
19
  )
20
+
21
  result_labels = []
22
  for pred in predictions:
23