-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
executable file
·59 lines (46 loc) · 1.7 KB
/
install.sh
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
51
52
53
54
55
56
57
58
59
#!/bin/bash
echo "Starting installation of AI Meeting Summarizer..."
# Check for Homebrew
if ! command -v brew &> /dev/null; then
echo "Installing Homebrew..."
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
fi
# Install system dependencies
echo "Installing system dependencies..."
brew install [email protected] go ffmpeg wget
# Create and activate virtual environment
echo "Setting up Python virtual environment..."
/opt/homebrew/opt/[email protected]/bin/python3.12 -m venv venv
source venv/bin/activate
# Install Python dependencies
echo "Installing Python dependencies..."
pip install --upgrade pip
# Install PyTorch first
echo "Installing PyTorch..."
pip install torch torchvision torchaudio
echo "Installing other Python packages..."
pip install -r requirements.txt
# Create models directory if it doesn't exist
mkdir -p models
# Define model path and URL
MODEL_PATH="models/Qwen2.5-14B-Instruct-Q4_K_M.gguf"
MODEL_URL="https://huggingface.co/bartowski/Qwen2.5-14B-Instruct-GGUF/resolve/main/Qwen2.5-14B-Instruct-Q4_K_M.gguf?download=true"
# Check if model exists
if [ -f "$MODEL_PATH" ]; then
echo "Model file already exists, skipping download..."
else
echo "Downloading Qwen model (this may take a while)..."
wget -O "$MODEL_PATH" "$MODEL_URL"
# Verify download was successful
if [ $? -ne 0 ]; then
echo "Error downloading model file!"
echo "You can try downloading it manually:"
echo "wget -O $MODEL_PATH $MODEL_URL"
exit 1
fi
fi
# Build Go binary
echo "Building Go application..."
go build -o summarizer_server cmd/server/main.go
echo "Installation complete!"
echo "You can now run the application using: ./run.sh"