temp
This commit is contained in:
parent
9fd212652e
commit
1fede6df7f
@ -119,6 +119,7 @@ def get_crazy_functions():
|
|||||||
},
|
},
|
||||||
"[插件demo] 历史上的今天": {
|
"[插件demo] 历史上的今天": {
|
||||||
# HotReload 的意思是热更新,修改函数插件代码后,不需要重启程序,代码直接生效
|
# HotReload 的意思是热更新,修改函数插件代码后,不需要重启程序,代码直接生效
|
||||||
|
"AsButton": False, # 加入下拉菜单中
|
||||||
"Function": HotReload(高阶功能模板函数)
|
"Function": HotReload(高阶功能模板函数)
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -358,9 +359,9 @@ def get_crazy_functions():
|
|||||||
})
|
})
|
||||||
from crazy_functions.Latex输出PDF结果 import Latex翻译中文并重新编译PDF
|
from crazy_functions.Latex输出PDF结果 import Latex翻译中文并重新编译PDF
|
||||||
function_plugins.update({
|
function_plugins.update({
|
||||||
"[功能尚不稳定] Latex翻译/Arixv翻译+重构PDF": {
|
"Arixv论文精细翻译": {
|
||||||
"Color": "stop",
|
"Color": "stop",
|
||||||
"AsButton": False,
|
"AsButton": True,
|
||||||
# "AdvancedArgs": True,
|
# "AdvancedArgs": True,
|
||||||
# "ArgsReminder": "",
|
# "ArgsReminder": "",
|
||||||
"Function": HotReload(Latex翻译中文并重新编译PDF)
|
"Function": HotReload(Latex翻译中文并重新编译PDF)
|
||||||
|
@ -89,7 +89,7 @@ def arxiv_download(chatbot, history, txt):
|
|||||||
except ValueError:
|
except ValueError:
|
||||||
return False
|
return False
|
||||||
if ('.' in txt) and ('/' not in txt) and is_float(txt):
|
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'):
|
if not txt.startswith('https://arxiv.org'):
|
||||||
return txt, None
|
return txt, None
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user