Florent Gbelidji commited on
Sync DeepSeek OCR HF job code
Browse files- ds_batch_ocr/document.py +0 -2
ds_batch_ocr/document.py
CHANGED
|
@@ -137,7 +137,6 @@ def build_document_markdown(
|
|
| 137 |
sample_id: str,
|
| 138 |
) -> Tuple[str, List[FigureMetadata], "Image.Image"]:
|
| 139 |
blocks = extract_grounding_blocks(response_text)
|
| 140 |
-
logging.info(f"Blocks: {blocks}")
|
| 141 |
replacements: List[Tuple[int, int, str]] = []
|
| 142 |
figures: List[FigureMetadata] = []
|
| 143 |
figure_index = 1
|
|
@@ -152,7 +151,6 @@ def build_document_markdown(
|
|
| 152 |
|
| 153 |
for block in blocks:
|
| 154 |
label = block["label"].lower()
|
| 155 |
-
logging.info(f"Label: {label}")
|
| 156 |
start, end = block["span"]
|
| 157 |
|
| 158 |
color = (np.random.randint(0, 200), np.random.randint(0, 200), np.random.randint(0, 255))
|
|
|
|
| 137 |
sample_id: str,
|
| 138 |
) -> Tuple[str, List[FigureMetadata], "Image.Image"]:
|
| 139 |
blocks = extract_grounding_blocks(response_text)
|
|
|
|
| 140 |
replacements: List[Tuple[int, int, str]] = []
|
| 141 |
figures: List[FigureMetadata] = []
|
| 142 |
figure_index = 1
|
|
|
|
| 151 |
|
| 152 |
for block in blocks:
|
| 153 |
label = block["label"].lower()
|
|
|
|
| 154 |
start, end = block["span"]
|
| 155 |
|
| 156 |
color = (np.random.randint(0, 200), np.random.randint(0, 200), np.random.randint(0, 255))
|