From fa8a0c5789407b41632fc52c451e2569f88265fe Mon Sep 17 00:00:00 2001 From: JimmyZhengyz Date: Wed, 30 Jul 2025 13:27:56 +0800 Subject: [PATCH] Update block_parsor.py Add comment for prompts --- block_parsor.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/block_parsor.py b/block_parsor.py index d77bd00..63a31d3 100644 --- a/block_parsor.py +++ b/block_parsor.py @@ -5,6 +5,8 @@ from utils import Doubao, Qwen, GPT, Gemini, encode_image, image_mask DEFAULT_IMAGE_PATH = "data/input/test2.png" DEFAULT_API_PATH = "doubao_api.txt" # Change the API key path for different models (i.e. doubao, qwen, gpt, gemini). + +# We provide prompts in both Chinese and English. PROMPT_LIST = [ ("header", "Please output the minimum bounding box of the header. Please output the bounding box in the format of x1 y1 x2 y2. Avoid the blank space in the header."), ("sidebar", "Please output the minimum bounding box of the sidebar. Please output the bounding box in the format of x1 y1 x2 y2. Avoid meaningless blank space in the sidebar."),