Here is the output from Codex:
"""
A presentation that describes the development of AI and what awaits in the future. Make it look visually appealing.
"""
import pptx
from pptx import Presentation
from pptx.enum.shapes import MSO_SHAPE_TYPE
from pptx.dml.color import RGBColor
from pptx.util import Inches
presentation_title = âAI and the Futureâ
presentation_subtitle = âA Presentation by: Nnnnn Nnnnnnâ
presentation_author = ânnnnnnâ
presentation_date = âSeptember 23, 2021â
prs = Presentation()
Title Slide
title_slide_layout = prs.slide_layouts[0]
slide = prs.slides.add_slide(title_slide_layout)
title = slide.shapes.title
subtitle = slide.placeholders[1]
title.text = presentation_title
subtitle.text = presentation_subtitle
Author Slide
bullet_slide_layout = prs.slide_layouts[1]
slide = prs.slides.add_slide(bullet_slide_layout)
shapes = slide.shapes
title_shape = shapes.title
body_shape = shapes.placeholders[1]
title_shape.text = âAuthorâ
tf = body_shape.text_frame
tf.text = presentation_author
Date Slide
bullet_slide_layout = prs.slide_layouts[1]
slide = prs.slides.add_slide(bullet_slide_layout)
shapes = slide.shapes
title_shape = shapes.title
body_shape = shapes.placeholders[1]
title_shape.text = âDateâ
tf = body_shape.text_frame
tf.text = presentation_date
Abstract Slide
bullet_slide_layout = prs.slide_layouts[1]
slide = prs.slides.add_slide(bullet_slide_layout)
shapes = slide.shapes
title_shape = shapes.title
body_shape = shapes.placeholders[1]
title_shape.text = âAbstractâ
tf = body_shape.text_frame
tf.text = âIn this presentation we will discuss the history of AI and where it is heading.â
History Slide
bullet_slide_layout = prs.slide_layouts[1]
slide = prs.slides.add_slide(bullet_slide_layout)
shapes = slide.shapes
title_shape = shapes.title
body_shape = shapes.placeholders[1]
title_shape.text = âHistoryâ
tf = body_shape.text_frame
tf.text = âIn the 1950s, Alan Turing and John McCarthy created the very first programs that could learn and make decisions. They called it the âTuring Testâ and it could distinguish between a human and a computer. The first AI program was called the âAutomatic Checking Machineâ and it was used to identify the correct spelling of words. The first AI program that could learn was called the âPerceptronâ and it was used to identify the correct spelling of words. The first AI program that could learn to play games was called the âTit For Tatâ and it was used to play chess.â
Turing Test Slide
bullet_slide_layout = prs.slide_layouts[1]
slide = prs.slides.add_slide(bullet_slide_layout)
shapes = slide.shapes
title_shape = shapes.title
body_shape = shapes.placeholders[1]
title_shape.text = âTuring Testâ
tf = body_shape.text_frame
tf.text = âThe Turing Test is a test that distinguishes between a human and a computer. The test is named after Alan Turing who created the first AI program. The test works by having a human and a computer communicate with each other. The computer is programmed to impersonate a human. The human is then asked a series of questions and the computer is supposed to answer them correctly. If the human can not tell the difference between the computer and a human, then the computer has passed the test.â
Perceptron Slide
bullet_slide_layout = prs.slide_layouts[1]
slide = prs.slides.add_slide(bullet_slide_layout)
shapes = slide.shapes
title_shape = shapes.title
body_shape = shapes.placeholders[1]
title_shape.text = âPerceptronâ
tf = body_shape.text_frame
tf.text = âThe Perceptron is a program that was created to identify the correct spelling of words. The program works by having a human label words as correct or incorrect. The program then looks at the words that were labeled incorrectly and looks at the ones that were labeled correctly. The program then identifies the words that are spelled incorrectly based on the ones that were labeled correctly. The program then creates a model of what letters and sequences of letters it needs to identify the correct spelling of the word.â
Tit For Tat Slide
bullet_slide_layout = prs.slide_layouts[1]
slide = prs.slides.add_slide(bullet_slide_layout)
shapes = slide.shapes
title_shape = shapes.title
body_shape = shapes.placeholders[1]
title_shape.text = âTit For Tatâ
tf = body_shape.text_frame
tf.text = âThe Tit for Tat game is a game that was created to play chess against an AI program. The game works by having two players, one being the computer and the other being a human player who plays as white, take turns playing each others pieces on a chess board until one of them wins or there is no more moves left to make.â
#Now create the presentation and launch powerpoint
prs.save(âAI and the Future.pptxâ)