CoolFace
Apppublic

DJ-Goanna-Coding/oppo-node

sourceHugging Faceupdated 5mo agoView on Hugging Face
0likes
setup.sh75 linesDownload Raw Back to root
1#!/bin/bash2 3# VAMGUARD TITAN Setup Script4 5set -e6 7echo "๐Ÿš€ VAMGUARD TITAN Setup"8echo "======================="9echo ""10 11# Check Python version12echo "Checking Python version..."13python_version=$(python3 --version 2>&1 | awk '{print $2}')14echo "Found Python $python_version"15 16# Create virtual environment17echo ""18echo "Creating virtual environment..."19python3 -m venv venv20source venv/bin/activate21 22# Upgrade pip23echo ""24echo "Upgrading pip..."25pip install --upgrade pip26 27# Install dependencies28echo ""29echo "Installing dependencies..."30pip install -r requirements.txt31 32# Create .env from example if it doesn't exist33if [ ! -f .env ]; then34    echo ""35    echo "Creating .env file from template..."36    cp .env.example .env37    echo "โš ๏ธ  Please edit .env with your API keys and configuration"38else39    echo ""40    echo ".env file already exists, skipping..."41fi42 43# Test imports44echo ""45echo "Testing imports..."46python - <<EOF47try:48    import streamlit49    import anthropic50    from huggingface_hub import HfApi51    import yaml52    print("โœ… All required packages imported successfully")53except Exception as e:54    print(f"โŒ Import error: {e}")55    exit(1)56EOF57 58echo ""59echo "โœ… Setup complete!"60echo ""61echo "Next steps:"62echo "1. Edit .env with your API keys:"63echo "   - HF_TOKEN (HuggingFace)"64echo "   - HF_USERNAME (HuggingFace)"65echo "   - ANTHROPIC_API_KEY (Claude AI)"66echo ""67echo "2. Update config.yaml with your space names"68echo ""69echo "3. Run the Streamlit app:"70echo "   streamlit run app.py"71echo ""72echo "4. Or run automation:"73echo "   python automation.py --help"74echo ""75