#!/bin/bash # Quick setup script - run all pre-session tasks echo "==========================================" echo "🚀 HuggingFace Enabling Sessions" echo "Pre-Session Setup Script" echo "==========================================" # 1. Download models echo "" echo "Step 1/3: Downloading models locally (~2-3GB, 10-20 min)..." echo "This ensures instant access during demos ⚡" python3 scripts/download_models.py # 2. Convert slides echo "" echo "Step 2/3: Converting markdown slides to PowerPoint..." python3 scripts/convert_slides_to_pptx.py # 3. Pre-warm Spaces echo "" echo "Step 3/3: Testing Spaces app and caching models..." python3 scripts/prewarm_spaces.py echo "" echo "==========================================" echo "✅ All setup complete!" echo "==========================================" echo "" echo "📌 What's ready:" echo " ✓ Models cached locally" echo " ✓ Slides converted to PPTX" echo " ✓ Spaces app tested and warmed" echo "" echo "🎯 Share with attendees:" echo " Spaces URL: https://huggingface.co/spaces/Shouryahere/infy" echo "" echo "📝 Before session:" echo " 1. Review SPEAKER_NOTES.md for timing" echo " 2. Open slides in PowerPoint/LibreOffice" echo " 3. Test one demo on Spaces" echo "" echo "🚀 Ready to present!"