批量翻译PDF出现问题 #468
Unanswered
wodeqiche2007
asked this question in
Q&A
批量翻译PDF出现问题
#468
Replies: 1 comment
-
我也出现了这个问题,解决了吗? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Traceback (most recent call last):
File "D:\Python\chatgpt_academic-master2682\toolbox.py", line 185, in decorated
yield from f(txt, top_p, temperature, chatbot, history, systemPromptTxt, WEB_PORT)
File "D:\Python\chatgpt_academic-master2682\crazy_functions\批量翻译PDF文档_多线程.py", line 56, in 批量翻译PDF文档
yield from 解析PDF(file_manifest, project_folder, llm_kwargs, plugin_kwargs, chatbot, history, sys_prompt)
File "D:\Python\chatgpt_academic-master2682\crazy_functions\批量翻译PDF文档_多线程.py", line 67, in 解析PDF
file_content, page_one = read_and_clean_pdf_text(fp)
File "D:\Python\chatgpt_academic-master2682\crazy_functions\crazy_utils.py", line 426, in read_and_clean_pdf_text
pf = primary_ffsize(l)
File "D:\Python\chatgpt_academic-master2682\crazy_functions\crazy_utils.py", line 403, in primary_ffsize
return max(fsize_statiscs, key=fsize_statiscs.get)
ValueError: max() arg is an empty sequence
Beta Was this translation helpful? Give feedback.
All reactions