diff --git a/pilot/commands/disply_type/show_chart_gen.py b/pilot/commands/disply_type/show_chart_gen.py index 052b9d971..097685369 100644 --- a/pilot/commands/disply_type/show_chart_gen.py +++ b/pilot/commands/disply_type/show_chart_gen.py @@ -142,7 +142,7 @@ def response_line_chart(speak: str, df: DataFrame) -> str: sns.lineplot(data=df, x=x, y=y, ax=ax, palette="Set2") ax.yaxis.set_major_formatter(mtick.FuncFormatter(lambda y, _: "{:,.0f}".format(y))) - ax.yaxis.set_major_formatter(mtick.FuncFormatter(lambda x, _: "{:,.0f}".format(x))) + ax.xaxis.set_major_formatter(mtick.FuncFormatter(lambda x, _: "{:,.0f}".format(x))) chart_name = "line_" + str(uuid.uuid1()) + ".png" chart_path = static_message_img_path + "/" + chart_name @@ -231,7 +231,7 @@ def response_bar_chart(speak: str, df: DataFrame) -> str: # 设置 y 轴刻度格式为普通数字格式 ax.yaxis.set_major_formatter(mtick.FuncFormatter(lambda y, _: "{:,.0f}".format(y))) - ax.yaxis.set_major_formatter(mtick.FuncFormatter(lambda x, _: "{:,.0f}".format(x))) + ax.xaxis.set_major_formatter(mtick.FuncFormatter(lambda x, _: "{:,.0f}".format(x))) chart_name = "bar_" + str(uuid.uuid1()) + ".png" chart_path = static_message_img_path + "/" + chart_name diff --git a/pilot/common/plugins.py b/pilot/common/plugins.py index 3ee5f4ac2..1548a4e31 100644 --- a/pilot/common/plugins.py +++ b/pilot/common/plugins.py @@ -145,9 +145,9 @@ def scan_plugins(cfg: Config, debug: bool = False) -> List[AutoGPTPluginTemplate a_module = getattr(zipped_module, key) a_keys = dir(a_module) if ( - "_abc_impl" in a_keys - and a_module.__name__ != "AutoGPTPluginTemplate" - # and denylist_allowlist_check(a_module.__name__, cfg) + "_abc_impl" in a_keys + and a_module.__name__ != "AutoGPTPluginTemplate" + # and denylist_allowlist_check(a_module.__name__, cfg) ): loaded_plugins.append(a_module()) diff --git a/pilot/scene/chat_data/chat_excel/excel_learning/out_parser.py b/pilot/scene/chat_data/chat_excel/excel_learning/out_parser.py index c990b042c..b4dece331 100644 --- a/pilot/scene/chat_data/chat_excel/excel_learning/out_parser.py +++ b/pilot/scene/chat_data/chat_excel/excel_learning/out_parser.py @@ -43,8 +43,8 @@ class LearningExcelOutputParser(BaseOutputParser): def parse_view_response(self, speak, data) -> str: if data: ### tool out data to table view - html_title = f"### **数据简介**\n{data.desciption} " - html_colunms = f"### **数据结构**\n" + html_title = f"### **Data Summary**\n{data.desciption} " + html_colunms = f"### **Data Structure**\n" column_index = 0 for item in data.clounms: column_index += 1 @@ -54,7 +54,7 @@ class LearningExcelOutputParser(BaseOutputParser): html_colunms + f"- **{column_index}.[{key}]** _{item[key]}_\n" ) - html_plans = f"### **分析计划**\n" + html_plans = f"### **Recommended analysis plan**\n" index = 0 for item in data.plans: index += 1 diff --git a/pilot/scene/chat_execution/out_parser.py b/pilot/scene/chat_execution/out_parser.py index 3db6ecff4..2ba9b9da0 100644 --- a/pilot/scene/chat_execution/out_parser.py +++ b/pilot/scene/chat_execution/out_parser.py @@ -13,8 +13,8 @@ logger = build_logger("webserver", LOGDIR + "DbChatOutputParser.log") class PluginAction(NamedTuple): command: Dict - speak: str - thoughts: str + speak: str = "" + thoughts: str = "" class PluginChatOutputParser(BaseOutputParser): @@ -28,6 +28,8 @@ class PluginChatOutputParser(BaseOutputParser): except Exception as e: raise ValueError("model server out not fllow the prompt!") + speak = "" + thoughts="" for key in sorted(response): if key.strip() == "command": command = response[key] diff --git a/pilot/server/static/404.html b/pilot/server/static/404.html index 954920cda..40c72fd52 100644 --- a/pilot/server/static/404.html +++ b/pilot/server/static/404.html @@ -1 +1 @@ -