Skip to content

Commit 9ad451a

Browse files
committed
remove superfluous print
1 parent b706744 commit 9ad451a

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
@@ -74,12 +74,10 @@ def process(
7474
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)
7575
image = Image.open(io.BytesIO(base64.b64decode(dino_labled_img)))
7676
print('finish processing')
77-
print('finish processing')
78-
output_dict = {
77+
combined_text_output = json.dumps({
7978
"parsed_content_list": parsed_content_list,
8079
"label_coordinates": label_coordinates,
81-
}
82-
combined_text_output = json.dumps(output_dict, indent=2)
80+
}, indent=2)
8381
return image, combined_text_output
8482

8583

0 commit comments

Comments
 (0)