This commit is contained in:
binary-husky 2023-06-20 23:05:17 +08:00
parent 9fd212652e
commit 1fede6df7f
2 changed files with 4 additions and 3 deletions

View File

@ -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)

View File

@ -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