Download apps/api/app/schemas/presentation.py from wassemgtk/glm-5.2-visual-runtime: direct link, hf CLI and curl.
- Browser
- Download file 626 Bytes
-
https://huggingface.co/wassemgtk/glm-5.2-visual-runtime/resolve/main/apps/api/app/schemas/presentation.py
- Command line
-
hf download hf://wassemgtk/glm-5.2-visual-runtime/apps/api/app/schemas/presentation.py
-
curl -L -o presentation.py https://huggingface.co/wassemgtk/glm-5.2-visual-runtime/resolve/main/apps/api/app/schemas/presentation.py
626 Bytes
| from typing import Any, Literal | |
| from pydantic import BaseModel, Field | |
| class SlideSpec(BaseModel): | |
| layout: Literal["title", "section", "bullets", "chart_and_insight", "image_reference"] = "bullets" | |
| title: str | |
| subtitle: str | None = None | |
| bullets: list[str] = Field(default_factory=list) | |
| chart_ref: str | None = None | |
| image_ref: str | None = None | |
| insights: list[str] = Field(default_factory=list) | |
| notes: str | None = None | |
| class PresentationSpec(BaseModel): | |
| title: str | |
| theme: dict[str, Any] | |
| slides: list[SlideSpec] | |
| provenance: list[dict[str, Any]] = Field(default_factory=list) | |