Spaces:
Running
Running
File size: 673 Bytes
d553fab |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
from pydantic import BaseModel, Field
from dataclasses import dataclass, field
from typing import List, Dict,Optional
@dataclass
class Perssentation(BaseModel):
title:str = Field(description="Title of the slide")
subTitle: Optional[str] = Field(description="Subtitle only for 1st slide")
author:Optional[str] = Field(description="Subtitle only for 1st slide")
text:str = Field(description="Detail description")
bulletPoints:Optional[list] = Field(description="Bullet Points")
imageSuggestion:Optional[str] = Field(description="Image prompt that we can give to AI image generator")
@dataclass
class PPT(BaseModel):
per:list[Perssentation]
|