-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_app.bat
More file actions
15 lines (15 loc) · 843 Bytes
/
Copy pathrun_app.bat
File metadata and controls
15 lines (15 loc) · 843 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
@echo off
cd /d "%~dp0"
if not exist .venv (
py -3 -m venv .venv
)
call .venv\Scripts\activate.bat
if not defined ARROW_DEFAULT_MEMORY_POOL set ARROW_DEFAULT_MEMORY_POOL=system
for /f %%H in ('powershell -NoProfile -Command "(Get-FileHash requirements.txt -Algorithm SHA256).Hash.ToLower()"') do set REQ_HASH=%%H
if not exist .venv\.choicesignal-requirements-%REQ_HASH% (
echo First launch: downloading packages. Later launches will be faster.
python -m pip --disable-pip-version-check install --prefer-binary -r requirements.txt
del /q .venv\.choicesignal-requirements-* .venv\.choicesignal-ready 2>nul
type nul > .venv\.choicesignal-requirements-%REQ_HASH%
)
python -m streamlit run app.py --server.headless=false --server.address=127.0.0.1 --server.maxUploadSize=200 --server.fileWatcherType=none --browser.gatherUsageStats=false