Skip to content

Commit

Permalink
Merge pull request #1438 from myhloli/dev
Browse files Browse the repository at this point in the history
fix(clear_bu): remove unused input from clear button
  • Loading branch information
myhloli authored Jan 7, 2025
2 parents ed20278 + e3d2de3 commit 40cab34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion projects/gradio_app/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,6 @@ def to_pdf(file_path):
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')

0 comments on commit 40cab34

Please sign in to comment.