-
-
Notifications
You must be signed in to change notification settings - Fork 197
Expand file tree
/
Copy pathrun_helper.bat
More file actions
23 lines (20 loc) · 621 Bytes
/
run_helper.bat
File metadata and controls
23 lines (20 loc) · 621 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
@echo off
python -m pip --version 2>nul
if %errorlevel% neq 0 (
echo pip is not installed. Installing...
python -m ensurepip --default-pip
if %errorlevel% neq 0 (
echo Failed to install pip automatically. Please install pip manually.
exit /b 1
)
)
python -c "import streamlit" 2>nul
if %errorlevel% neq 0 (
echo Streamlit is not installed. Installing...
pip install streamlit
if %errorlevel% neq 0 (
echo Failed to install streamlit. Please check your internet connection and try again.
exit /b 1
)
)
streamlit run helper.py --server.fileWatcherType none