-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
50 lines (41 loc) · 1.48 KB
/
Copy pathsetup.sh
File metadata and controls
50 lines (41 loc) · 1.48 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
39
40
41
42
43
44
45
46
47
48
49
50
#!/usr/bin/env bash
# PodLens one-command setup.
# Creates a virtual environment, installs dependencies, and prepares config files.
set -euo pipefail
cd "$(dirname "$0")"
PYTHON="${PYTHON:-python3}"
echo "PodLens setup"
echo "-------------"
# 1. Virtual environment
if [ ! -d ".venv" ]; then
echo "Creating virtual environment (.venv)..."
"$PYTHON" -m venv .venv
fi
# shellcheck disable=SC1091
source .venv/bin/activate
# 2. Dependencies
echo "Installing dependencies..."
python -m pip install --quiet --upgrade pip
python -m pip install --quiet -r requirements.txt
# 3. Config files
if [ ! -f ".env" ]; then
cp .env.example .env
echo "Created .env -> set PODLENS_PROVIDER and paste your GEMINI_API_KEY or DEEPSEEK_API_KEY"
fi
if [ ! -f "profile.md" ]; then
cp profile.example.md profile.md
echo "Created profile.md -> edit it with your own interests for personal mapping"
fi
echo ""
echo "Setup complete."
echo ""
echo "Next steps:"
echo " 1. Edit .env: set PODLENS_PROVIDER (gemini or deepseek) and add the matching API key"
echo " Gemini (free): https://aistudio.google.com/apikey"
echo " DeepSeek: https://platform.deepseek.com/api_keys"
echo " 2. (Optional) Edit profile.md with your interests"
echo " 3. Activate the env: source .venv/bin/activate"
echo " 4. Try it: python -m podlens examples/sample_transcript.txt"
echo ""
echo "No key yet? Inspect the pipeline without calling the API:"
echo " python -m podlens examples/sample_transcript.txt --dry-run"