Spaces:
Running
Running
Update presentation.py
#2
by
samvish
- opened
- presentation.py +8 -11
presentation.py
CHANGED
@@ -1,24 +1,21 @@
|
|
1 |
from pydantic import BaseModel, Field
|
2 |
-
from dataclasses import dataclass
|
3 |
-
from typing import List,
|
4 |
-
|
5 |
-
|
6 |
|
7 |
@dataclass
|
8 |
class Presentation(BaseModel):
|
9 |
title: str = Field(
|
10 |
-
description="The main title of the slide. Should be concise and descriptive
|
11 |
)
|
12 |
text: str = Field(
|
13 |
-
description="The
|
14 |
)
|
15 |
bulletPoints: Optional[List[str]] = Field(
|
16 |
-
description="A list of bullet points summarizing key information
|
17 |
)
|
18 |
-
# imageSuggestion: Optional[str] = Field(
|
19 |
-
# description="A prompt for generating an image to complement the slide content. Describe the desired visual in detail, including elements, style, and relevance to the topic. Ensure the prompt is actionable for AI tools."
|
20 |
-
# )
|
21 |
|
22 |
@dataclass
|
23 |
class PPT(BaseModel):
|
24 |
-
per:list[Presentation] = Field(
|
|
|
|
|
|
1 |
from pydantic import BaseModel, Field
|
2 |
+
from dataclasses import dataclass
|
3 |
+
from typing import List, Optional
|
|
|
|
|
4 |
|
5 |
@dataclass
|
6 |
class Presentation(BaseModel):
|
7 |
title: str = Field(
|
8 |
+
description="The main title of the slide. Should be concise and descriptive."
|
9 |
)
|
10 |
text: str = Field(
|
11 |
+
description="The narrative content of the slide, containing key information."
|
12 |
)
|
13 |
bulletPoints: Optional[List[str]] = Field(
|
14 |
+
description="A list of bullet points summarizing key information. Ideally, limit to 3-5 points."
|
15 |
)
|
|
|
|
|
|
|
16 |
|
17 |
@dataclass
|
18 |
class PPT(BaseModel):
|
19 |
+
per: list[Presentation] = Field(
|
20 |
+
description="A list of `Presentation` objects representing PowerPoint slides."
|
21 |
+
)
|