From 18b058558d3274d1ce60f59c0c653acd853188b4 Mon Sep 17 00:00:00 2001 From: zhanluxianshen Date: Tue, 26 Aug 2025 09:24:49 +0800 Subject: [PATCH] when bbox is none, return args is not match . Signed-off-by: zhanluxianshen --- demo/demo_gradio_annotion.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/demo/demo_gradio_annotion.py b/demo/demo_gradio_annotion.py index ef7bccb..7a118cd 100755 --- a/demo/demo_gradio_annotion.py +++ b/demo/demo_gradio_annotion.py @@ -260,7 +260,7 @@ def process_image_inference_with_annotation(annotation_data, test_image_input, if image is None: return None, "Please select a test image or add an image in the annotation component", "", "", gr.update(value=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: # Process using DotsOCRParser, passing the bbox parameter