From f09d81fb8649fc4f7c24879ae3e4a89c7fb5c99d Mon Sep 17 00:00:00 2001 From: zjrwtx <3038880699@qq.com> Date: Wed, 12 Mar 2025 11:39:51 +0800 Subject: [PATCH] modify run_app_en_zh --- run_app_en.py | 10 +++++----- run_app.py => run_app_zh.py | 0 2 files changed, 5 insertions(+), 5 deletions(-) rename run_app.py => run_app_zh.py (100%) diff --git a/run_app_en.py b/run_app_en.py index 32093b3..b65c244 100644 --- a/run_app_en.py +++ b/run_app_en.py @@ -25,21 +25,21 @@ from pathlib import Path def main(): """Main function to launch the OWL Intelligent Assistant Platform""" - # 确保当前目录是项目根目录 + # Ensure the current directory is the project root project_root = Path(__file__).resolve().parent os.chdir(project_root) - # 创建日志目录 + # Create log directory log_dir = project_root / "logs" log_dir.mkdir(exist_ok=True) - # 导入并运行应用 + # Add project root to Python path sys.path.insert(0, str(project_root)) try: from owl.app_en import create_ui - # 创建并启动应用 + # Create and launch the application app = create_ui() app.queue().launch(share=False) @@ -58,4 +58,4 @@ def main(): if __name__ == "__main__": - main() + main() \ No newline at end of file diff --git a/run_app.py b/run_app_zh.py similarity index 100% rename from run_app.py rename to run_app_zh.py