-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·60 lines (51 loc) · 1.43 KB
/
Copy pathsetup.sh
File metadata and controls
executable file
·60 lines (51 loc) · 1.43 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
51
52
53
54
55
56
57
58
59
60
#!/bin/bash
# Quick setup script for Speech Summarizer API
echo "======================================"
echo "Speech Summarizer API - Quick Setup"
echo "======================================"
# Check if Python 3 is available
if ! command -v python3 &> /dev/null; then
echo "❌ Python 3 is not installed"
exit 1
fi
echo "✓ Python 3 found"
# Create virtual environment if it doesn't exist
if [ ! -d "venv" ]; then
echo ""
echo "Creating virtual environment..."
python3 -m venv venv
echo "✓ Virtual environment created"
else
echo "✓ Virtual environment already exists"
fi
# Activate virtual environment
echo ""
echo "Activating virtual environment..."
source venv/bin/activate
# Upgrade pip
echo ""
echo "Upgrading pip..."
pip install --upgrade pip --quiet
# Install dependencies
echo ""
echo "Installing dependencies..."
echo "(This may take 2-3 minutes for first time setup)"
pip install -r requirements.txt
# Download NLTK data
echo ""
echo "Downloading NLTK data..."
python -c "import nltk; nltk.download('punkt', quiet=True); nltk.download('punkt_tab', quiet=True)"
echo ""
echo "======================================"
echo "✅ Setup Complete!"
echo "======================================"
echo ""
echo "To start the API server:"
echo " 1. source venv/bin/activate"
echo " 2. python app.py"
echo ""
echo "Then open: http://localhost:5000"
echo ""
echo "To test the API:"
echo " python test_setup.py"
echo ""