Skip to content

Commit

Permalink
Merge branch 'main' into dev-guide
Browse files Browse the repository at this point in the history
  • Loading branch information
reycn committed Dec 19, 2024
2 parents e0abaf7 + 69b02ee commit fa3cbff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pdf2zh/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ def on_file_upload_translate(file, first_page_only):
)


def readuserandpasswd(file_path):
def parse_user_passwd(file_path):
tuple_list = []
content = ""
if not file_path:
Expand All @@ -547,7 +547,7 @@ def readuserandpasswd(file_path):


def setup_gui(share=False, authfile=["", ""]):
userlist, html = readuserandpasswd(authfile)
userlist, html = parse_user_passwd(authfile)
if flag_demo:
demo.launch(server_name="0.0.0.0", max_file_size="5mb", inbrowser=True)
else:
Expand Down

0 comments on commit fa3cbff

Please sign in to comment.