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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
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
- return answer, seg_result
 
 
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