Spaces:
Build error
Build error
Download presentation.py from sarim/ppt: direct link, hf CLI and curl.
- Browser
- Download file 702 Bytes
-
https://huggingface.co/spaces/sarim/ppt/resolve/refs%2Fpr%2F2/presentation.py
- Command line
-
hf download hf://spaces/sarim/ppt@refs/pr/2/presentation.py
-
curl -L -o presentation.py https://huggingface.co/spaces/sarim/ppt/resolve/refs%2Fpr%2F2/presentation.py
702 Bytes
| from pydantic import BaseModel, Field | |
| from dataclasses import dataclass | |
| from typing import List, Optional | |
| class Presentation(BaseModel): | |
| title: str = Field( | |
| description="The main title of the slide. Should be concise and descriptive." | |
| ) | |
| text: str = Field( | |
| description="The narrative content of the slide, containing key information." | |
| ) | |
| bulletPoints: Optional[List[str]] = Field( | |
| description="A list of bullet points summarizing key information. Ideally, limit to 3-5 points." | |
| ) | |
| class PPT(BaseModel): | |
| per: list[Presentation] = Field( | |
| description="A list of `Presentation` objects representing PowerPoint slides." | |
| ) | |