infy / scripts /setup.sh
shourya
Update app docs, setup scripts, and utils
62a67da
#!/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!"