"git@developer.sourcefind.cn:renzhc/diffusers_dcu.git" did not exist on "72780ff5b154f37194903078ef6caa5d65c653e3"
Commit b4cdfedb authored by myhloli's avatar myhloli
Browse files

fix: prevent URL assignment for non-client backends

parent fc5f330c
...@@ -28,6 +28,7 @@ async def parse_pdf(doc_path, output_dir, end_page_id, is_ocr, formula_enable, t ...@@ -28,6 +28,7 @@ async def parse_pdf(doc_path, output_dir, end_page_id, is_ocr, formula_enable, t
if backend.startswith("vlm"): if backend.startswith("vlm"):
parse_method = "vlm" parse_method = "vlm"
if not backend.endswith("client"):
url = None url = None
local_image_dir, local_md_dir = prepare_env(output_dir, file_name, parse_method) local_image_dir, local_md_dir = prepare_env(output_dir, file_name, parse_method)
await aio_do_parse( await aio_do_parse(
......
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