From 1f045b8b45ccc16ca480bb884b771e5ff69fd027 Mon Sep 17 00:00:00 2001 From: "weirui.kwr@alibaba-inc.com" Date: Fri, 17 Jan 2025 10:13:05 +0800 Subject: [PATCH] fix win support --- src/agentscope/web/workstation/workflow_dag.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/agentscope/web/workstation/workflow_dag.py b/src/agentscope/web/workstation/workflow_dag.py index d9ffe43f7..09b872a43 100644 --- a/src/agentscope/web/workstation/workflow_dag.py +++ b/src/agentscope/web/workstation/workflow_dag.py @@ -149,6 +149,7 @@ def format_python_code(code: str) -> str: # Combine header and body to form the full script script = ( + "# -*- coding: utf-8 -*-\n" f"{header}\n\n\n{main_body}\n\nif __name__ == " f"'__main__':\n main()\n" )