File size: 807 Bytes
1d339f3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
@echo off
REM Launch the Copper Group Streamlit dashboard.
REM   1) cd to the project root so the app finds Dashboard_Data.xlsx
REM   2) ensure streamlit is installed (install once if missing)
REM   3) run streamlit_app.py — it opens the browser automatically
REM Close this window to stop the server.

cd /d "%~dp0"
title Copper Group Streamlit Dashboard

where python >nul 2>nul
if errorlevel 1 (
    echo Python not found on PATH. Install Python first.
    pause
    exit /b 1
)

REM First-time setup: install/refresh requirements quietly.
python -m pip install --quiet --upgrade --requirement "%~dp0All_Code\requirements.txt"
if errorlevel 1 (
    echo Failed to install Python dependencies. See message above.
    pause
    exit /b 1
)

python -m streamlit run "%~dp0All_Code\streamlit_app.py"
pause