Browse Source

fix: files path

Byaidu 1 year ago
parent
commit
9cb812e29c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      pdf2zh/gui.py

+ 1 - 1
pdf2zh/gui.py

@@ -164,7 +164,7 @@ def translate_file(
         progress(t.n / t.total, desc="Translating...")
 
     param = {
-        "files": [file_raw],
+        "files": [str(file_raw)],
         "pages": selected_page,
         "lang_in": lang_from,
         "lang_out": lang_to,