-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_dashboard.sh
More file actions
executable file
·33 lines (27 loc) · 885 Bytes
/
run_dashboard.sh
File metadata and controls
executable file
·33 lines (27 loc) · 885 Bytes
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
29
30
31
32
33
#!/bin/bash
# Launch Streamlit Dashboard for Thesis Allocation System
# Get script directory
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd "$DIR"
# Check if venv exists
if [ ! -d ".venv" ]; then
echo "Creating virtual environment..."
python3 -m venv .venv
fi
# Activate venv
source .venv/bin/activate
# Install requirements if needed
if ! python -c "import streamlit" 2>/dev/null; then
echo "Installing dependencies..."
pip install -q -r requirements.txt
fi
# Launch Streamlit
echo ""
echo "🎓 Launching Thesis Allocation Dashboard..."
echo "Dashboard will open at: http://localhost:8501"
echo "Pages will be automatically discovered from: streamlit_dashboard_pages/pages/"
echo "Press Ctrl+C to stop the server"
echo ""
# Run from streamlit_dashboard_pages directory so pages are auto-discovered
cd streamlit_dashboard_pages
streamlit run Home.py