Update latex_utils.py
This commit is contained in:
@ -685,7 +685,9 @@ def 编译Latex(chatbot, history, main_file_original, main_file_modified, work_f
|
|||||||
result_pdf = pj(work_folder_modified, f'{main_file_modified}.pdf')
|
result_pdf = pj(work_folder_modified, f'{main_file_modified}.pdf')
|
||||||
if os.path.exists(pj(work_folder, '..', 'translation')):
|
if os.path.exists(pj(work_folder, '..', 'translation')):
|
||||||
shutil.copyfile(result_pdf, pj(work_folder, '..', 'translation', 'translate_zh.pdf'))
|
shutil.copyfile(result_pdf, pj(work_folder, '..', 'translation', 'translate_zh.pdf'))
|
||||||
promote_file_to_downloadzone(result_pdf, chatbot)
|
promote_file_to_downloadzone(result_pdf, chatbot=chatbot)
|
||||||
|
# 我重新指定了参数传入。
|
||||||
|
# promote_file_to_downloadzone(file=result_pdf, rename_file=None, chatbot=chatbot)
|
||||||
return True # 成功啦
|
return True # 成功啦
|
||||||
else:
|
else:
|
||||||
if n_fix>=max_try: break
|
if n_fix>=max_try: break
|
||||||
|
|||||||
Reference in New Issue
Block a user