镜像自地址
https://github.com/binary-husky/gpt_academic.git
已同步 2025-12-06 14:36:48 +00:00
在nougat处理结束后,同时输出mmd文件
这个提交包含在:
@@ -101,7 +101,7 @@ def 解析PDF_基于NOUGAT(file_manifest, project_folder, llm_kwargs, plugin_kwa
|
|||||||
for index, fp in enumerate(file_manifest):
|
for index, fp in enumerate(file_manifest):
|
||||||
chatbot.append(["当前进度:", f"正在解析论文,请稍候。(第一次运行时,需要花费较长时间下载NOUGAT参数)"]); yield from update_ui(chatbot=chatbot, history=history) # 刷新界面
|
chatbot.append(["当前进度:", f"正在解析论文,请稍候。(第一次运行时,需要花费较长时间下载NOUGAT参数)"]); yield from update_ui(chatbot=chatbot, history=history) # 刷新界面
|
||||||
fpp = yield from nougat_handle.NOUGAT_parse_pdf(fp, chatbot, history)
|
fpp = yield from nougat_handle.NOUGAT_parse_pdf(fp, chatbot, history)
|
||||||
|
promote_file_to_downloadzone(fpp, rename_file=os.path.basename(fpp)+'.nougat.mmd', chatbot=chatbot)
|
||||||
with open(fpp, 'r', encoding='utf8') as f:
|
with open(fpp, 'r', encoding='utf8') as f:
|
||||||
article_content = f.readlines()
|
article_content = f.readlines()
|
||||||
article_dict = markdown_to_dict(article_content)
|
article_dict = markdown_to_dict(article_content)
|
||||||
|
|||||||
在新工单中引用
屏蔽一个用户