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