Adjust bbox format

This commit is contained in:
Vik Paruchuri
2025-11-07 13:18:38 -05:00
parent 4470243560
commit fe28f26fc2
2 changed files with 2 additions and 3 deletions

View File

@@ -1,5 +1,4 @@
import hashlib
import json
import re
from dataclasses import dataclass, asdict
from functools import lru_cache
@@ -241,7 +240,7 @@ def parse_layout(html: str, image: Image.Image):
bbox = div.get("data-bbox")
try:
bbox = json.loads(bbox)
bbox = bbox.split(" ")
except Exception:
bbox = [0, 0, 1, 1]

View File

@@ -15,7 +15,7 @@ class Settings(BaseSettings):
TORCH_DEVICE: str | None = None
MAX_OUTPUT_TOKENS: int = 12384
TORCH_ATTN: str | None = None
BBOX_SCALE: int = 1024
BBOX_SCALE: int = 1000
# vLLM server settings
VLLM_API_KEY: str = "EMPTY"