ancebuc commited on
Commit
9f65914
·
verified ·
1 Parent(s): ef261c9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -24,7 +24,7 @@ def visualize_segmentation(image, prompts, preds):
24
  def segment(img, clases):
25
  prompts = clases.split(',')
26
 
27
- inputs = processor(text=prompts, images=[image] * len(img), padding="max_length", return_tensors="pt")
28
 
29
  with torch.no_grad():
30
  outputs = model(**inputs)
 
24
  def segment(img, clases):
25
  prompts = clases.split(',')
26
 
27
+ inputs = processor(text=prompts, images=[img] * len(img), padding="max_length", return_tensors="pt")
28
 
29
  with torch.no_grad():
30
  outputs = model(**inputs)