#Slides presentation GPT

8 messages · Page 1 of 1 (latest)

south ice
#

ChatGPT can create PowerPoint files using Python. The PowerPoint files can be created using code interpreter or Google colab or using a local installation of Python.

(Note: I did not try but when asking GPT4 to list ways to code a presentation it also lists html/javascript methods. markdown and beamer(Latex)
)

Prompt :

Using the python library Python-pptx, create a four page presentation on why cats are considered cute by some, but also include counter arguments. The conclusion should be funny.

#

output with manually added library installation for google colab (! pip install python-pptx):

`! pip install python-pptx
from pptx import Presentation
from pptx.util import Inches

Create a new PowerPoint presentation

presentation = Presentation()

Slide 1 - Title slide

slide_layout = presentation.slide_layouts[0]
slide = presentation.slides.add_slide(slide_layout)
title = slide.shapes.title
subtitle = slide.placeholders[1]
title.text = "Why Cats Are Considered Cute"
subtitle.text = "And Why That Might Not Be True"

Slide 2 - Cats are Adorable

slide_layout = presentation.slide_layouts[1]
slide = presentation.slides.add_slide(slide_layout)
title = slide.shapes.title
content = slide.placeholders[1]
title.text = "Cats are Adorable"
content.text = "1. Soft fur\n2. Cute meows\n3. Playful nature"

Slide 3 - Counter-arguments

slide_layout = presentation.slide_layouts[1]
slide = presentation.slides.add_slide(slide_layout)
title = slide.shapes.title
content = slide.placeholders[1]
title.text = "Counter-arguments"
content.text = "1. Hairballs everywhere\n2. Scratched furniture\n3. Nighttime zoomies"

Slide 4 - Conclusion (Funny)

slide_layout = presentation.slide_layouts[1]
slide = presentation.slides.add_slide(slide_layout)
title = slide.shapes.title
content = slide.placeholders[1]
title.text = "In Conclusion"
content.text = "Cats may have their downsides,\nbut let's face it...\nthey're just too paw-some to resist!"

Save the presentation

presentation.save("cat_presentation.pptx")`

#

Slides presentation GPT

cosmic gyro
#

that's interesting!

idle totem
#

This worked very well going to try it for work this week

long ocean
#

now thats pretty cool.. worked for me.. Been using Canva for Auto outputs but this is going to be on the cards now too. thanks for posting.

long ocean
#

Works in ChatGPT4 with CI as well..