-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun.sh
More file actions
executable file
·56 lines (47 loc) · 1.32 KB
/
run.sh
File metadata and controls
executable file
·56 lines (47 loc) · 1.32 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
#!/bin/bash
# Quick start script for Jarvis
echo "================================"
echo "Jarvis Voice Assistant - Quick Start"
echo "================================"
echo ""
# Check if virtual environment exists
if [ ! -d "venv" ]; then
echo "Creating virtual environment..."
python3 -m venv venv
fi
# Activate virtual environment
echo "Activating virtual environment..."
source venv/bin/activate
# Install dependencies if needed
if [ ! -f "venv/.installed" ]; then
echo "Installing Python dependencies..."
pip install -r requirements.txt
touch venv/.installed
fi
# Check if Piper is installed
if [ ! -f "piper/piper/piper" ]; then
echo "Piper not found. Running setup..."
python setup_piper.py
fi
# Check if .env exists
if [ ! -f ".env" ]; then
echo "Creating .env from example..."
cp .env.example .env
echo ""
echo "⚠️ Please edit .env to configure your settings!"
echo ""
fi
# Check if Ollama is running
if ! curl -s http://localhost:11434/api/tags > /dev/null 2>&1; then
echo ""
echo "⚠️ Ollama doesn't appear to be running!"
echo " Start it with: ollama serve"
echo " Or install from: https://ollama.ai/download"
echo ""
fi
# Start Jarvis
echo ""
echo "Starting Jarvis..."
echo "Modes: --tui (Terminal UI), --text (text-only)"
echo ""
python main.py "$@"