Spaces:
Running
Running
| # 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!" | |