-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
65 lines (52 loc) · 1.54 KB
/
setup.sh
File metadata and controls
65 lines (52 loc) · 1.54 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
61
62
63
64
65
#!/bin/bash
# TruthProbe v4.0 Installation Script
# Complete setup with all dependencies
echo "🔧 Setting up TruthProbe v4.0 Enhanced Edition"
# Create virtual environment
echo "Creating virtual environment..."
python3 -m venv truthprobe_env
source truthprobe_env/bin/activate
# Upgrade pip
echo "Upgrading pip..."
pip install --upgrade pip
# Install core dependencies
echo "Installing core dependencies..."
pip install -r requirements.txt
# Download spaCy model
echo "Downloading spaCy model..."
python -m spacy download en_core_web_sm
# Download NLTK data
echo "Downloading NLTK data..."
python -c "import nltk; nltk.download('punkt'); nltk.download('wordnet'); nltk.download('averaged_perceptron_tagger')"
# Create directory structure
echo "Creating directory structure..."
mkdir -p src/core src/utils src/interfaces tests examples dashboards integrations
# Make scripts executable
chmod +x run_dashboard.sh
chmod +x run_tests.sh
# Create .env file
echo "Creating environment configuration..."
cat > .env << EOL
# TruthProbe Configuration
TRUTHPROBE_VERSION=4.0.0
LOG_LEVEL=INFO
MAX_RESPONSE_LENGTH=5000
RISK_THRESHOLD_HIGH=0.7
RISK_THRESHOLD_MEDIUM=0.4
# API Keys (Add your own)
WIKIPEDIA_API_ENABLED=true
ARXIV_API_ENABLED=true
# Dashboard Settings
DASHBOARD_HOST=0.0.0.0
DASHBOARD_PORT=8050
EOL
echo "✅ Installation complete!"
echo ""
echo "To activate the environment:"
echo " source truthprobe_env/bin/activate"
echo ""
echo "To run the dashboard:"
echo " python dashboard/realtime_monitor.py"
echo ""
echo "To run tests:"
echo " pytest tests/"