From 1fede6df7fc182a355fac65fc4487e1b579d7be7 Mon Sep 17 00:00:00 2001 From: binary-husky Date: Tue, 20 Jun 2023 23:05:17 +0800 Subject: [PATCH] temp --- crazy_functional.py | 5 +++-- crazy_functions/Latex输出PDF结果.py | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/crazy_functional.py b/crazy_functional.py index d8ca9ae..abd44d7 100644 --- a/crazy_functional.py +++ b/crazy_functional.py @@ -119,6 +119,7 @@ def get_crazy_functions(): }, "[插件demo] 历史上的今天": { # HotReload 的意思是热更新,修改函数插件代码后,不需要重启程序,代码直接生效 + "AsButton": False, # 加入下拉菜单中 "Function": HotReload(高阶功能模板函数) }, @@ -358,9 +359,9 @@ def get_crazy_functions(): }) from crazy_functions.Latex输出PDF结果 import Latex翻译中文并重新编译PDF function_plugins.update({ - "[功能尚不稳定] Latex翻译/Arixv翻译+重构PDF": { + "Arixv论文精细翻译": { "Color": "stop", - "AsButton": False, + "AsButton": True, # "AdvancedArgs": True, # "ArgsReminder": "", "Function": HotReload(Latex翻译中文并重新编译PDF) diff --git a/crazy_functions/Latex输出PDF结果.py b/crazy_functions/Latex输出PDF结果.py index 2e9a30b..1d5e103 100644 --- a/crazy_functions/Latex输出PDF结果.py +++ b/crazy_functions/Latex输出PDF结果.py @@ -89,7 +89,7 @@ def arxiv_download(chatbot, history, txt): except ValueError: return False if ('.' in txt) and ('/' not in txt) and is_float(txt): - txt = 'https://arxiv.org/abs/' + txt + txt = 'https://arxiv.org/abs/' + txt.strip() if not txt.startswith('https://arxiv.org'): return txt, None