when bbox is none, return args is not match .

Signed-off-by: zhanluxianshen <zhanluxianshen@163.com>
This commit is contained in:
zhanluxianshen
2025-08-26 09:24:49 +08:00
parent 2562ed0df4
commit 18b058558d
+1 -1
View File
@@ -260,7 +260,7 @@ def process_image_inference_with_annotation(annotation_data, test_image_input,
if image is None: if image is None:
return None, "Please select a test image or add an image in the annotation component", "", "", gr.update(value=None), "" return None, "Please select a test image or add an image in the annotation component", "", "", gr.update(value=None), ""
if bbox is None: if bbox is None:
return "Please select a bounding box by mouse", "Please select a bounding box by mouse", "", "", gr.update(value=None) return None, "Please select a bounding box by mouse", "Please select a bounding box by mouse", "", "", gr.update(value=None)
try: try:
# Process using DotsOCRParser, passing the bbox parameter # Process using DotsOCRParser, passing the bbox parameter