Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -425,7 +425,7 @@ async def on_generate(api_service, api_key, serpapi_key, title, lecture_content_
|
|
425 |
system_message=f"""
|
426 |
You are a Slide Agent. Using the research from the conversation history and the specified number of content slides ({content_slides}), generate exactly {content_slides} content slides, plus an Introduction slide as the first slide and a Closing slide as the last slide, making a total of {total_slides} slides.
|
427 |
|
428 |
-
- The Introduction slide (first slide) should have the title "
|
429 |
- The Closing slide (last slide) should have the title "Closing" and content containing only "The End\nThank you", centered, in plain text.
|
430 |
- The remaining {content_slides} slides should be content slides based on the lecture description and audience type, with meaningful titles and content in valid Markdown format.
|
431 |
|
@@ -435,7 +435,7 @@ Example output for 1 content slide (total 3 slides):
|
|
435 |
```json
|
436 |
[
|
437 |
{{"title": "Introduction to AI Basics", "content": "AI Basics\nProf. AI Feynman\nMay 2nd, 2025"}},
|
438 |
-
{{"title": "
|
439 |
{{"title": "Closing", "content": "The End\nThank you"}}
|
440 |
]
|
441 |
```""",
|
|
|
425 |
system_message=f"""
|
426 |
You are a Slide Agent. Using the research from the conversation history and the specified number of content slides ({content_slides}), generate exactly {content_slides} content slides, plus an Introduction slide as the first slide and a Closing slide as the last slide, making a total of {total_slides} slides.
|
427 |
|
428 |
+
- The Introduction slide (first slide) should have the title "{title}" and content containing only the lecture title, speaker name (Prof. AI Feynman), and date {date}, centered, in plain text.
|
429 |
- The Closing slide (last slide) should have the title "Closing" and content containing only "The End\nThank you", centered, in plain text.
|
430 |
- The remaining {content_slides} slides should be content slides based on the lecture description and audience type, with meaningful titles and content in valid Markdown format.
|
431 |
|
|
|
435 |
```json
|
436 |
[
|
437 |
{{"title": "Introduction to AI Basics", "content": "AI Basics\nProf. AI Feynman\nMay 2nd, 2025"}},
|
438 |
+
{{"title": "What is AI?", "content": "# What is AI?\n- Definition: Systems that mimic human intelligence\n- Key areas: ML, NLP, Robotics"}},
|
439 |
{{"title": "Closing", "content": "The End\nThank you"}}
|
440 |
]
|
441 |
```""",
|