tabbyAPI-ollama/Start.bat
2023-12-19 00:01:27 -05:00

13 lines
383 B
Batchfile

@echo off
set VENV_DIR=
set REQUIREMENTS_FILE=
if not defined PYTHON (set PYTHON=python)
if not defined VENV_DIR (set "VENV_DIR=%~dp0%venv")
if not defined REQUIREMENTS_FILE (set "REQUIREMENTS_FILE=requirements-nowheel.txt")
call "%VENV_DIR%\Scripts\activate.bat"
call pip -V
if NOT [%1] == [--ignore-upgrade] call pip install --upgrade -r %REQUIREMENTS_FILE%
call python main.py