Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -117,7 +117,7 @@ def create_slides(slides: list[dict], title: str, output_dir: str = OUTPUT_DIR)
|
|
117 |
|
118 |
# Replace placeholders in the template
|
119 |
slide_html = template_content.replace("<!--SLIDE_NUMBER-->", str(slide_number))
|
120 |
-
slide_html = slide_html.replace("section title", f"
|
121 |
slide_html = slide_html.replace("Lecture title", title)
|
122 |
slide_html = slide_html.replace("<!--CONTENT-->", html_content)
|
123 |
slide_html = slide_html.replace("speaker name", "Prof. AI Feynman")
|
|
|
117 |
|
118 |
# Replace placeholders in the template
|
119 |
slide_html = template_content.replace("<!--SLIDE_NUMBER-->", str(slide_number))
|
120 |
+
slide_html = slide_html.replace("section title", f"{slide['title']}")
|
121 |
slide_html = slide_html.replace("Lecture title", title)
|
122 |
slide_html = slide_html.replace("<!--CONTENT-->", html_content)
|
123 |
slide_html = slide_html.replace("speaker name", "Prof. AI Feynman")
|