minor pdf translation adjustment

这个提交包含在:
binary-husky
2024-04-30 00:52:36 +08:00
父节点 744759704d
当前提交 bd5280df1b
共有 3 个文件被更改,包括 47 次插入11 次删除

查看文件

@@ -192,6 +192,8 @@ def trimmed_format_exc():
replace_path = "."
return str.replace(current_path, replace_path)
def trimmed_format_exc_markdown():
return '\n\n```\n' + trimmed_format_exc() + '```'
def CatchException(f):
"""
@@ -536,6 +538,17 @@ def on_file_uploaded(
return chatbot, txt, txt2, cookies
def generate_file_link(report_files:List[str]):
file_links = ""
for f in report_files:
file_links += (
f'<br/><a href="file={os.path.abspath(f)}" target="_blank">{f}</a>'
)
return file_links
def on_report_generated(cookies:dict, files:List[str], chatbot:ChatBotWithCookies):
if "files_to_promote" in cookies:
report_files = cookies["files_to_promote"]