Files
HadTavern/run_agentui.bat

28 lines
626 B
Batchfile
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@echo off
setlocal
chcp 65001 >NUL
set PORT=7860
echo Installing dependencies...
python -m pip install --upgrade pip
if errorlevel 1 goto :fail
pip install -r requirements.txt
if errorlevel 1 goto :fail
echo Starting НадTavern on http://127.0.0.1:%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
if errorlevel 1 goto :fail
goto :end
:fail
echo.
echo Server failed with errorlevel %errorlevel%.
echo Check the console output above and the file agentui.log for details.
pause
:end
pause
endlocal