fffiloni commited on
Commit
af1dd1a
·
verified ·
1 Parent(s): d28dde6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -61,9 +61,10 @@ def image_vision(image_input_path, prompt):
61
  def main_infer(image_input_path, prompt):
62
 
63
  answer, seg_image = image_vision(image_input_path, prompt)
64
- pred_masks = seg_image[0]
65
 
66
  if '[SEG]' in answer and Visualizer is not None:
 
67
  temp_dir = tempfile.mkdtemp()
68
  pred_mask = pred_masks
69
  os.makedirs(temp_dir, exist_ok=True)
 
61
  def main_infer(image_input_path, prompt):
62
 
63
  answer, seg_image = image_vision(image_input_path, prompt)
64
+
65
 
66
  if '[SEG]' in answer and Visualizer is not None:
67
+ pred_masks = seg_image[0]
68
  temp_dir = tempfile.mkdtemp()
69
  pred_mask = pred_masks
70
  os.makedirs(temp_dir, exist_ok=True)