debug translation

This commit is contained in:
qingxu fu
2023-06-02 23:06:01 +08:00
parent 601712fd0a
commit a643f8b0db
4 changed files with 186 additions and 120 deletions

View File

@ -180,9 +180,11 @@ def test_Langchain知识库读取():
cli_printer.print(cb) # print(cb)
def test_Latex():
from crazy_functions.Latex输出PDF结果 import Latex预处理, 编译Latex, Latex英文纠错加PDF对比
from crazy_functions.Latex输出PDF结果 import Latex预处理, 编译Latex, Latex英文纠错加PDF对比, Latex翻译中文并重新编译PDF
txt = "C:/Users/fuqingxu/Desktop/proofread"
for cookies, cb, hist, msg in (Latex英文纠错加PDF对比)(txt, llm_kwargs, plugin_kwargs, chatbot, history, system_prompt, web_port):
txt = "C:/Users/fuqingxu/Desktop/旧文件/gpt/paperx"
for cookies, cb, hist, msg in (Latex翻译中文并重新编译PDF)(txt, llm_kwargs, plugin_kwargs, chatbot, history, system_prompt, web_port):
cli_printer.print(cb) # print(cb)