Spaces:
Running
Running
实验
Browse files- crazy_functional.py +6 -6
- crazy_functions/Latex全文润色.py +3 -3
crazy_functional.py
CHANGED
@@ -122,12 +122,12 @@ def get_crazy_functions():
|
|
122 |
"AsButton": False, # 加入下拉菜单中
|
123 |
"Function": HotReload(Latex英文润色)
|
124 |
},
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
})
|
132 |
|
133 |
###################### 第三组插件 ###########################
|
|
|
122 |
"AsButton": False, # 加入下拉菜单中
|
123 |
"Function": HotReload(Latex英文润色)
|
124 |
},
|
125 |
+
"中文Latex项目全文润色(输入路径或上传压缩包)": {
|
126 |
+
# HotReload 的意思是热更新,修改函数插件代码后,不需要重启程序,代码直接生效
|
127 |
+
"Color": "stop",
|
128 |
+
"AsButton": False, # 加入下拉菜单中
|
129 |
+
"Function": HotReload(Latex中文润色)
|
130 |
+
},
|
131 |
})
|
132 |
|
133 |
###################### 第三组插件 ###########################
|
crazy_functions/Latex全文润色.py
CHANGED
@@ -79,10 +79,10 @@ def 多文件润色(file_manifest, project_folder, llm_kwargs, plugin_kwargs, ch
|
|
79 |
inputs_show_user_array = [f"Polish {f}" for f in pfg.sp_file_tag]
|
80 |
sys_prompt_array = ["You are a professional academic paper writer." for _ in range(n_split)]
|
81 |
elif language == 'zh':
|
82 |
-
inputs_array = [f"
|
83 |
-
f"
|
84 |
inputs_show_user_array = [f"润色 {f}" for f in pfg.sp_file_tag]
|
85 |
-
sys_prompt_array=["
|
86 |
|
87 |
|
88 |
gpt_response_collection = yield from request_gpt_model_multi_threads_with_very_awesome_ui_and_high_efficiency(
|
|
|
79 |
inputs_show_user_array = [f"Polish {f}" for f in pfg.sp_file_tag]
|
80 |
sys_prompt_array = ["You are a professional academic paper writer." for _ in range(n_split)]
|
81 |
elif language == 'zh':
|
82 |
+
inputs_array = [f"以下是一篇学术论文中的一段内容,请将此部分润色以满足学术标准,提高语法、清晰度和整体可读性,不要修改任何LaTeX命令,例如\section,\cite和方程式:" +
|
83 |
+
f"\n\n{frag}" for frag in pfg.sp_file_contents]
|
84 |
inputs_show_user_array = [f"润色 {f}" for f in pfg.sp_file_tag]
|
85 |
+
sys_prompt_array=["你是一位专业的学术论文作家。" for _ in range(n_split)]
|
86 |
|
87 |
|
88 |
gpt_response_collection = yield from request_gpt_model_multi_threads_with_very_awesome_ui_and_high_efficiency(
|