Skip to content

Commit f7e3e8d

Browse files
committed
remove superfluous print
1 parent 817e6ae commit f7e3e8d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

gradio_demo.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,10 @@ def process(
7272
dino_labled_img, label_coordinates, parsed_content_list = get_som_labeled_img(image_save_path, yolo_model, BOX_TRESHOLD = box_threshold, output_coord_in_ratio=True, ocr_bbox=ocr_bbox,draw_bbox_config=draw_bbox_config, caption_model_processor=caption_model_processor, ocr_text=text,iou_threshold=iou_threshold)
7373
image = Image.open(io.BytesIO(base64.b64decode(dino_labled_img)))
7474
print('finish processing')
75-
print('finish processing')
76-
output_dict = {
75+
combined_text_output = json.dumps({
7776
"parsed_content_list": parsed_content_list,
7877
"label_coordinates": label_coordinates,
79-
}
80-
combined_text_output = json.dumps(output_dict, indent=2)
78+
}, indent=2)
8179
return image, combined_text_output
8280

8381

0 commit comments

Comments
 (0)