Spaces:
Sleeping
Sleeping
Update export/ppt.py
Browse files- export/ppt.py +1 -2
export/ppt.py
CHANGED
|
@@ -1,6 +1,5 @@
|
|
| 1 |
from pptx import Presentation
|
| 2 |
from pptx.util import Pt
|
| 3 |
-
from generators.narrative_templates import SLIDE_BULLETS_TPL
|
| 4 |
|
| 5 |
def _add_slide(prs, title, bullets, footnotes):
|
| 6 |
slide_layout = prs.slide_layouts[1] # Title and Content
|
|
@@ -37,7 +36,7 @@ def build_deck(summary_sections: dict, links):
|
|
| 37 |
]
|
| 38 |
for title, text in chapter_map:
|
| 39 |
bullets = [s.strip("- ").strip() for s in text.split("\n") if s.strip()]
|
| 40 |
-
bullets = bullets[:6]
|
| 41 |
_add_slide(prs, title, bullets, links)
|
| 42 |
# 9-10: Q&Aダイジェスト
|
| 43 |
_add_slide(prs, "想定Q&A(ダイジェスト1/2)", ["詳細は添付CSV参照"], links)
|
|
|
|
| 1 |
from pptx import Presentation
|
| 2 |
from pptx.util import Pt
|
|
|
|
| 3 |
|
| 4 |
def _add_slide(prs, title, bullets, footnotes):
|
| 5 |
slide_layout = prs.slide_layouts[1] # Title and Content
|
|
|
|
| 36 |
]
|
| 37 |
for title, text in chapter_map:
|
| 38 |
bullets = [s.strip("- ").strip() for s in text.split("\n") if s.strip()]
|
| 39 |
+
bullets = bullets[:6]
|
| 40 |
_add_slide(prs, title, bullets, links)
|
| 41 |
# 9-10: Q&Aダイジェスト
|
| 42 |
_add_slide(prs, "想定Q&A(ダイジェスト1/2)", ["詳細は添付CSV参照"], links)
|