From d1f52077f3c3f08395a853276aa830ab5330e76e Mon Sep 17 00:00:00 2001 From: st2411020231 Date: Fri, 9 Jan 2026 10:32:46 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=9E=E9=80=80=EF=BC=9A=E5=88=A0=E9=99=A4?= =?UTF-8?q?=E4=B8=80=E9=94=AE=E5=90=AF=E5=8A=A8=E8=84=9A=E6=9C=AC=EF=BC=8C?= =?UTF-8?q?=E6=81=A2=E5=A4=8D=E7=AE=80=E6=B4=81=E5=90=AF=E5=8A=A8=E6=96=B9?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 删除一键启动.bat文件 - 恢复启动应用.bat到简洁版本 - 保持邮箱验证禁用功能 --- 一键启动.bat | 72 ---------------------------------------------------- 启动应用.bat | 9 +++---- 2 files changed, 4 insertions(+), 77 deletions(-) delete mode 100644 一键启动.bat diff --git a/一键启动.bat b/一键启动.bat deleted file mode 100644 index fd11256..0000000 --- a/一键启动.bat +++ /dev/null @@ -1,72 +0,0 @@ -@echo off -chcp 65001 >nul -title Multi-Agent Decision Workshop - Smart Launcher - -echo ======================================== -echo Multi-Agent Decision Workshop - Smart Launcher - -echo ======================================== -echo. - -echo Checking Python environment... - -:: Check Python -python --version >nul 2>&1 -if errorlevel 1 ( - echo ERROR: Python not found - echo. - echo Please install Python 3.8+ and add to PATH - echo Download: https://www.python.org/downloads/ - echo. - pause - exit /b 1 -) - -echo OK Python environment check passed -echo. - -echo Checking dependencies... - -:: Check and install dependencies -python -m pip install -r requirements.txt >nul 2>&1 -if errorlevel 1 ( - echo ERROR: Dependencies installation failed, trying manual installation... - python -m pip install streamlit openai python-dotenv -) - -echo OK Dependencies check completed -echo. - -echo Getting network information... - -:: Get local IP address -for /f "tokens=2 delims=:" %%i in ('ipconfig ^| findstr "IPv4"') do ( - set "IP_ADDR=%%i" - goto :IP_FOUND -) - -:IP_FOUND -set "IP_ADDR=%IP_ADDR: =%" - -echo Network information obtained: -echo Local URL: http://localhost:8513 -echo LAN URL: http://%IP_ADDR%:8513 -echo. - -echo Starting application... -echo Please wait, browser will open automatically... -echo. - -:: Automatically open browser (local address) -start http://localhost:8513 - -:: Run application -python -m streamlit run app.py --server.headless true --server.port 8513 --server.address 0.0.0.0 --browser.gatherUsageStats false --browser.serverAddress 0.0.0.0 - -echo. -echo ======================================== -echo Application stopped running - -echo ======================================== -echo. -pause \ No newline at end of file diff --git a/启动应用.bat b/启动应用.bat index d17d5bd..2eec810 100644 --- a/启动应用.bat +++ b/启动应用.bat @@ -3,7 +3,7 @@ chcp 65001 >nul title 多Agent决策工作坊启动器 echo ======================================== -echo 多Agent决策工作坊 - 便携版启动器(局域网可访问) +echo 多Agent决策工作坊 - 便携版启动器 echo ======================================== echo. @@ -78,14 +78,13 @@ echo. echo 正在启动多Agent决策工作坊... echo. echo 🌐 应用将在浏览器中自动打开 -echo 📱 本地地址:http://localhost:8513 -echo 🌐 局域网地址:http://您的IP地址:8513 +echo 📱 地址:http://localhost:8513 echo. echo ⏳ 请稍候... echo. -:: 运行应用(允许局域网访问,禁用邮箱验证) -python -m streamlit run app.py --server.headless true --server.port 8513 --server.address 0.0.0.0 --browser.gatherUsageStats false --browser.serverAddress 0.0.0.0 +:: 运行应用(允许局域网访问) +python -m streamlit run app.py --server.headless true --server.port 8513 --server.address 0.0.0.0 echo. echo 应用已关闭