-
-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathstart_ollama_workbench.sh
More file actions
executable file
·28 lines (23 loc) · 816 Bytes
/
start_ollama_workbench.sh
File metadata and controls
executable file
·28 lines (23 loc) · 816 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
#!/bin/bash
# Set directory paths
LOCAL_DIR="$(dirname "$0")"
VENV_DIR="$LOCAL_DIR/venv"
# Check if virtual environment exists
if [ ! -d "$VENV_DIR" ]; then
echo "Virtual environment not found. Please run setup.sh or run_ollama_workbench.sh first."
exit 1
fi
# Check if streamlit is installed
if ! $VENV_DIR/bin/pip show streamlit >/dev/null 2>&1; then
echo "Streamlit not found. Please run setup.sh or run_ollama_workbench.sh first."
exit 1
fi
# Check if streamlit_option_menu is installed
if ! $VENV_DIR/bin/pip show streamlit-option-menu >/dev/null 2>&1; then
echo "Installing streamlit-option-menu..."
$VENV_DIR/bin/pip install streamlit-option-menu==0.3.13
fi
# Run the application
echo "Starting Ollama Workbench..."
cd "$LOCAL_DIR"
$VENV_DIR/bin/streamlit run "$LOCAL_DIR/main.py"