sync: UI animations, select styling, TLS verify flag via proxy second line, brand spacing
This commit is contained in:
@@ -1,27 +1,51 @@
|
||||
@echo off
|
||||
setlocal
|
||||
chcp 65001 >NUL
|
||||
set PORT=7860
|
||||
echo Installing dependencies...
|
||||
python -m pip install --upgrade pip
|
||||
|
||||
REM -------- Config --------
|
||||
if "%PORT%"=="" set PORT=7860
|
||||
if "%HOST%"=="" set HOST=127.0.0.1
|
||||
REM ------------------------
|
||||
|
||||
echo [НадTavern] Preparing virtual environment...
|
||||
|
||||
REM Pick Python launcher
|
||||
where py >NUL 2>&1
|
||||
if %ERRORLEVEL%==0 (
|
||||
set PY=py
|
||||
) else (
|
||||
set PY=python
|
||||
)
|
||||
|
||||
REM Create venv if missing
|
||||
if not exist ".venv\Scripts\python.exe" (
|
||||
%PY% -m venv .venv
|
||||
if errorlevel 1 goto :fail
|
||||
)
|
||||
|
||||
set "VENV_PY=.venv\Scripts\python.exe"
|
||||
|
||||
echo [НадTavern] Upgrading pip...
|
||||
"%VENV_PY%" -m pip install --upgrade pip
|
||||
if errorlevel 1 goto :fail
|
||||
pip install -r requirements.txt
|
||||
|
||||
echo [НадTavern] Installing dependencies from requirements.txt...
|
||||
"%VENV_PY%" -m pip install -r requirements.txt
|
||||
if errorlevel 1 goto :fail
|
||||
echo Starting НадTavern on http://127.0.0.1:%PORT%/
|
||||
|
||||
echo [НадTavern] Starting on http://%HOST%:%PORT%/
|
||||
timeout /t 1 /nobreak >NUL
|
||||
start "" "http://127.0.0.1:%PORT%/ui/editor.html"
|
||||
python -m uvicorn agentui.api.server:app --host 127.0.0.1 --port %PORT% --log-level info
|
||||
start "" "http://%HOST%:%PORT%/ui/editor.html"
|
||||
|
||||
"%VENV_PY%" -m uvicorn agentui.api.server:app --host %HOST% --port %PORT% --log-level info
|
||||
if errorlevel 1 goto :fail
|
||||
goto :end
|
||||
|
||||
:fail
|
||||
echo.
|
||||
echo Server failed with errorlevel %errorlevel%.
|
||||
echo [НадTavern] Server failed with errorlevel %errorlevel%.
|
||||
echo Check the console output above and the file agentui.log for details.
|
||||
pause
|
||||
|
||||
:end
|
||||
pause
|
||||
endlocal
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user