"examples/community/fresco_v2v.py" did not exist on "4a343077021c5b57f45043ce7eeac2e5f9c728e6"
Commit 86391acf authored by myhloli's avatar myhloli
Browse files

fix: prevent server URL assignment for non-client backends in VLM processing

parent b4cdfedb
......@@ -229,6 +229,8 @@ async def _async_process_vlm(
"""异步处理VLM后端逻辑"""
parse_method = "vlm"
f_draw_span_bbox = False
if not backend.endswith("client"):
server_url = None
for idx, pdf_bytes in enumerate(pdf_bytes_list):
pdf_file_name = pdf_file_names[idx]
......@@ -267,6 +269,8 @@ def _process_vlm(
"""同步处理VLM后端逻辑"""
parse_method = "vlm"
f_draw_span_bbox = False
if not backend.endswith("client"):
server_url = None
for idx, pdf_bytes in enumerate(pdf_bytes_list):
pdf_file_name = pdf_file_names[idx]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment