@echo off
setlocal
cd /d %~dp0\..

if not exist .venv (
  py -3 -m venv .venv
)

call .venv\Scripts\activate.bat
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
python -m pip install -r requirements-optional.txt

if "%PORT%"=="" set PORT=8501
streamlit run Main.py --server.headless true --server.port %PORT%
