Spaces:
Runtime error
Runtime error
change UI
Browse files- crazy_functional.py +9 -8
crazy_functional.py
CHANGED
@@ -70,9 +70,17 @@ def get_crazy_functions():
|
|
70 |
from crazy_functions.批量总结PDF文档 import 批量总结PDF文档
|
71 |
from crazy_functions.批量总结PDF文档pdfminer import 批量总结PDF文档pdfminer
|
72 |
from crazy_functions.总结word文档 import 总结word文档
|
|
|
|
|
73 |
function_plugins.update({
|
|
|
|
|
|
|
|
|
|
|
74 |
"[仅供开发调试] 批量总结PDF文档": {
|
75 |
"Color": "stop",
|
|
|
76 |
"Function": HotReload(批量总结PDF文档) # HotReload 的意思是热更新,修改函数插件代码后,不需要重启程序,代码直接生效
|
77 |
},
|
78 |
"[仅供开发调试] 批量总结PDF文档pdfminer": {
|
@@ -97,14 +105,7 @@ def get_crazy_functions():
|
|
97 |
"Function": HotReload(下载arxiv论文并翻译摘要)
|
98 |
}
|
99 |
})
|
100 |
-
|
101 |
-
function_plugins.update({
|
102 |
-
"批量翻译PDF文档(多线程)": {
|
103 |
-
"Color": "stop",
|
104 |
-
"AsButton": False, # 加入下拉菜单中
|
105 |
-
"Function": HotReload(批量翻译PDF文档)
|
106 |
-
}
|
107 |
-
})
|
108 |
except Exception as err:
|
109 |
print(f'[下载arxiv论文并翻译摘要] 插件导入失败 {str(err)}')
|
110 |
|
|
|
70 |
from crazy_functions.批量总结PDF文档 import 批量总结PDF文档
|
71 |
from crazy_functions.批量总结PDF文档pdfminer import 批量总结PDF文档pdfminer
|
72 |
from crazy_functions.总结word文档 import 总结word文档
|
73 |
+
from crazy_functions.批量翻译PDF文档_多线程 import 批量翻译PDF文档
|
74 |
+
|
75 |
function_plugins.update({
|
76 |
+
"批量翻译PDF文档(多线程)": {
|
77 |
+
"Color": "stop",
|
78 |
+
"AsButton": True, # 加入下拉菜单中
|
79 |
+
"Function": HotReload(批量翻译PDF文档)
|
80 |
+
},
|
81 |
"[仅供开发调试] 批量总结PDF文档": {
|
82 |
"Color": "stop",
|
83 |
+
"AsButton": False, # 加入下拉菜单中
|
84 |
"Function": HotReload(批量总结PDF文档) # HotReload 的意思是热更新,修改函数插件代码后,不需要重启程序,代码直接生效
|
85 |
},
|
86 |
"[仅供开发调试] 批量总结PDF文档pdfminer": {
|
|
|
105 |
"Function": HotReload(下载arxiv论文并翻译摘要)
|
106 |
}
|
107 |
})
|
108 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
109 |
except Exception as err:
|
110 |
print(f'[下载arxiv论文并翻译摘要] 插件导入失败 {str(err)}')
|
111 |
|