瀏覽代碼

fix: remove unnecessary condition for backend client check

myhloli 4 月之前
父節點
當前提交
f1bab85eb5
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      mineru/cli/gradio_app.py

+ 1 - 2
mineru/cli/gradio_app.py

@@ -28,8 +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(
             output_dir=output_dir,