Spaces:
Running
Running
File size: 1,280 Bytes
2a31b59 | 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 | #!/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!"
|