lkhl commited on
Commit
771a9dd
Β·
verified Β·
1 Parent(s): 0f68134

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -177,7 +177,7 @@ def run_seg_inference(images, timestamps, instruction, mask_threshold):
177
  mask_list_video.append((Image.fromarray(image), f"Frame {i}"))
178
 
179
  if len(mask_list_video) == 0:
180
- raise gr.Warning("No masks found! Please lower the confidence threshold in the settings or adjust the prompt and try again.", duration=5)
181
 
182
  return output, mask_list_video
183
 
 
177
  mask_list_video.append((Image.fromarray(image), f"Frame {i}"))
178
 
179
  if len(mask_list_video) == 0:
180
+ gr.Warning("No masks found! Please lower the confidence threshold in the settings or adjust the prompt and try again.", duration=5)
181
 
182
  return output, mask_list_video
183