소스 검색

fix(clear_bu): remove unused input from clear button

Remove 'table_enable' input from the clear button's function call. This change ensures that only necessary inputs are included in the clear operation, improving code efficiency and maintainability.
myhloli 10 달 전
부모
커밋
e3d2de3710
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      projects/gradio_app/app.py

+ 1 - 1
projects/gradio_app/app.py

@@ -221,6 +221,6 @@ if __name__ == '__main__':
         file.change(fn=to_pdf, inputs=file, outputs=pdf_show)
         change_bu.click(fn=to_markdown, inputs=[file, max_pages, is_ocr, layout_mode, formula_enable, table_enable, language],
                         outputs=[md, md_text, output_file, pdf_show])
-        clear_bu.add([file, md, pdf_show, md_text, output_file, is_ocr, table_enable, language])
+        clear_bu.add([file, md, pdf_show, md_text, output_file, is_ocr, language])
 
     demo.launch(server_name='0.0.0.0')