-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun.sh
More file actions
executable file
·38 lines (32 loc) · 1.56 KB
/
run.sh
File metadata and controls
executable file
·38 lines (32 loc) · 1.56 KB
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
34
35
36
37
38
#!/usr/bin/env bash
# ---------------------------------------------------------------------------
# run.sh — Launch the AI Sales Enablement Playbook Streamlit app.
#
# Prerequisites:
# pip install -r requirements.txt
#
# Usage:
# ./run.sh # Launch the Streamlit app on port 8501
# ./run.sh --port 8080 # Launch on a custom port
# ---------------------------------------------------------------------------
set -euo pipefail
# Resolve the project root directory relative to this script's location
# so the script works regardless of where it's called from
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
# Change to the project directory so Streamlit can find all modules
cd "$SCRIPT_DIR"
# Check that streamlit is installed before attempting to launch
if ! command -v streamlit &>/dev/null; then
echo "Error: streamlit is not installed."
echo "Install it with: pip install -r requirements.txt"
exit 1
fi
echo "╔═══════════════════════════════════════════════╗"
echo "║ AI Sales Enablement Playbook ║"
echo "║ Starting Streamlit app... ║"
echo "║ All tools running in mock mode (no API key) ║"
echo "╚═══════════════════════════════════════════════╝"
echo ""
# Launch the Streamlit app, passing through any additional arguments
# (e.g., --port, --server.headless, etc.)
streamlit run app.py "$@"