소스 검색

Update mineru/cli/gradio_app.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Xiaomeng Zhao 1 개월 전
부모
커밋
6b182f8378
1개의 변경된 파일1개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 3
      mineru/cli/gradio_app.py

+ 1 - 3
mineru/cli/gradio_app.py

@@ -275,9 +275,7 @@ def main(ctx,
             print("vLLM engine init successfully.")
         except Exception as e:
             logger.exception(e)
-    suffixes = []
-    for suffix in pdf_suffixes + image_suffixes:
-        suffixes.append(f".{suffix}")
+    suffixes = [f".{suffix}" for suffix in pdf_suffixes + image_suffixes]
     with gr.Blocks() as demo:
         gr.HTML(header)
         with gr.Row():