Spaces:
Running
Running
Download Run_Streamlit.bat from CB-Group/CB-Dashboard: direct link, hf CLI and curl.
- Browser
- Download file 807 Bytes
-
https://huggingface.co/spaces/CB-Group/CB-Dashboard/resolve/main/Run_Streamlit.bat
- Command line
-
hf download hf://spaces/CB-Group/CB-Dashboard/Run_Streamlit.bat
-
curl -L -o Run_Streamlit.bat https://huggingface.co/spaces/CB-Group/CB-Dashboard/resolve/main/Run_Streamlit.bat
807 Bytes
| @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 | |