PHOENIXREBORNAGAIN commited on
Commit
5de2d90
·
verified ·
1 Parent(s): 143388a

Upload slide_generator.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. slide_generator.py +3 -3
slide_generator.py CHANGED
@@ -51,7 +51,7 @@ Return a JSON object with this EXACT structure:
51
  "type": "title",
52
  "title": "Presentation Title",
53
  "subtitle": "Subtitle or tagline",
54
- "image_keyword": "relevant 2-3 word photo search term",
55
  "speaker_notes": "Detailed opening notes for the presenter, 3-4 sentences."
56
  }},
57
  {{
@@ -65,7 +65,7 @@ Return a JSON object with this EXACT structure:
65
  "Fourth point with actionable information or a compelling statistic",
66
  "Fifth point summarizing implications or real-world applications"
67
  ],
68
- "image_keyword": "relevant 2-3 word photo search term for this slide",
69
  "speaker_notes": "Detailed speaker notes for this slide, 3-4 sentences explaining what to say and emphasize."
70
  }}
71
  ]
@@ -76,7 +76,7 @@ Rules:
76
  - All other slides type "content" with bullets array
77
  - Each slide must have EXACTLY 5 bullet points
78
  - Each bullet point: 15-25 words, informative and specific — include facts, data, or clear explanations. No vague one-liners.
79
- - image_keyword: 2-3 descriptive words for a real-world photo (e.g. "solar panels field", "brain neuroscience scan", "city skyline night")
80
  - speaker_notes: 3-4 detailed sentences per slide
81
  - Total slides: exactly {num_slides}
82
  - Return only the JSON object, nothing else
 
51
  "type": "title",
52
  "title": "Presentation Title",
53
  "subtitle": "Subtitle or tagline",
54
+ "image_keyword": "{topic} overview",
55
  "speaker_notes": "Detailed opening notes for the presenter, 3-4 sentences."
56
  }},
57
  {{
 
65
  "Fourth point with actionable information or a compelling statistic",
66
  "Fifth point summarizing implications or real-world applications"
67
  ],
68
+ "image_keyword": "{topic} [specific aspect of this slide — 2-4 words total]",
69
  "speaker_notes": "Detailed speaker notes for this slide, 3-4 sentences explaining what to say and emphasize."
70
  }}
71
  ]
 
76
  - All other slides type "content" with bullets array
77
  - Each slide must have EXACTLY 5 bullet points
78
  - Each bullet point: 15-25 words, informative and specific — include facts, data, or clear explanations. No vague one-liners.
79
+ - image_keyword: MUST include the topic "{topic}" plus 1-2 extra words describing the slide's specific angle. Examples for topic "Electric Vehicles": "electric vehicles charging station", "electric vehicles battery technology", "electric vehicles environmental impact". Always make keywords directly about the main topic.
80
  - speaker_notes: 3-4 detailed sentences per slide
81
  - Total slides: exactly {num_slides}
82
  - Return only the JSON object, nothing else