Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -69,8 +69,10 @@ def main_infer(image_input_path, prompt):
|
|
69 |
pred_mask = pred_masks
|
70 |
os.makedirs(temp_dir, exist_ok=True)
|
71 |
seg_result = visualize(pred_mask, image_input_path, temp_dir)
|
72 |
-
|
73 |
-
|
|
|
|
|
74 |
|
75 |
# Gradio UI
|
76 |
|
|
|
69 |
pred_mask = pred_masks
|
70 |
os.makedirs(temp_dir, exist_ok=True)
|
71 |
seg_result = visualize(pred_mask, image_input_path, temp_dir)
|
72 |
+
return answer, seg_result
|
73 |
+
else:
|
74 |
+
return answer, None
|
75 |
+
|
76 |
|
77 |
# Gradio UI
|
78 |
|