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 应用已关闭