Explorar o código

fix: prevent URL assignment for non-client backends

myhloli hai 4 meses
pai
achega
b4cdfedb63
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      mineru/cli/gradio_app.py

+ 1 - 0
mineru/cli/gradio_app.py

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