Download setup.sh from CW3Ai/math: direct link, hf CLI and curl.
- Browser
- Download file 638 Bytes
-
https://huggingface.co/spaces/CW3Ai/math/resolve/main/setup.sh
- Command line
-
hf download hf://spaces/CW3Ai/math/setup.sh
-
curl -L -o setup.sh https://huggingface.co/spaces/CW3Ai/math/resolve/main/setup.sh
638 Bytes
| echo "🔧 Setting up your AI Agent environment..." | |
| # Create virtual environment | |
| python3 -m venv .venv | |
| source .venv/bin/activate | |
| # Upgrade pip | |
| echo "📦 Upgrading pip..." | |
| pip install --upgrade pip | |
| # Install dependencies | |
| echo "📚 Installing requirements..." | |
| pip install -r requirements.txt | |
| # Confirm .env setup | |
| if [ -f ".env" ]; then | |
| echo "🔐 .env file detected. API keys will be loaded automatically in your Python scripts." | |
| else | |
| echo "⚠️ .env file not found. Create one with your OpenAI and SerpAPI keys." | |
| fi | |
| echo "✅ Setup complete. Activate your environment with:" | |
| echo "source .venv/bin/activate" | |