Spaces:
Sleeping
Sleeping
Download fixtures/create_warmup.py from DerXanity/farient-deckcheck: direct link, hf CLI and curl.
- Browser
- Download file 637 Bytes
-
https://huggingface.co/spaces/DerXanity/farient-deckcheck/resolve/main/fixtures/create_warmup.py
- Command line
-
hf download hf://spaces/DerXanity/farient-deckcheck/fixtures/create_warmup.py
-
curl -L -o create_warmup.py https://huggingface.co/spaces/DerXanity/farient-deckcheck/resolve/main/fixtures/create_warmup.py
637 Bytes
| """ | |
| Utility script to programmatically create warmup.pptx (1-slide fixture). | |
| Run once: uv run python fixtures/create_warmup.py | |
| """ | |
| from pathlib import Path | |
| from pptx import Presentation | |
| from pptx.util import Inches, Pt | |
| def create_warmup_pptx(dest: Path) -> None: | |
| prs = Presentation() | |
| slide_layout = prs.slide_layouts[0] # title slide | |
| slide = prs.slides.add_slide(slide_layout) | |
| title = slide.shapes.title | |
| if title is not None: | |
| title.text = "Warmup" | |
| prs.save(str(dest)) | |
| if __name__ == "__main__": | |
| out = Path(__file__).parent / "warmup.pptx" | |
| create_warmup_pptx(out) | |
| print(f"Created {out}") | |