Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
|
| 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 |
|