Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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
|
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 |
|