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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -65,7 +65,7 @@ def main_infer(image_input_path, prompt):
65
 
66
  if '[SEG]' in answer and Visualizer is not None:
67
  temp_dir = tempfile.mkdtemp()
68
- pred_mask = pred_masks[0]
69
  os.makedirs(temp_dir, exist_ok=True)
70
  seg_result = visualize(pred_mask, image_input_path, temp_dir)
71
 
 
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)
70
  seg_result = visualize(pred_mask, image_input_path, temp_dir)
71