Giter Site home page Giter Site logo

otahina / powerpoint-generator-python-project Goto Github PK

View Code? Open in Web Editor NEW
165.0 5.0 52.0 79.33 MB

Discover the power of GPT-3.5 turbo in presentation creation! πŸ’»πŸ€© This web application can effortlessly generate captivating PowerPoint presentations. Say goodbye to the struggle of starting from scratch and let AI revolutionize your content creation process. 🎨

License: MIT License

Python 88.44% JavaScript 11.56%
flask-application intermediate-projects openai-api python-project python3 contributions-welcome open-source powerpoint powerpoint-generation collaborate

powerpoint-generator-python-project's Introduction

banner

made-with-python Open Source Love Contributions Welcome View My Profile

PowerPoint Generator: Your Gateway to Effortless Presentations πŸš€

Dive into the ease of presentation creation with PowerPoint Generator, a smart web application crafted to automate PowerPoint presentations! 🌟 This project is ripe for growth and eager for your contributions. Let's enhance its capability together! 😊

Demo Highlights 🎬

project_demo.mov

Table of Contents πŸ“‹

  1. Features
  2. Inner Structure of the Project
  3. How to Use
  4. How to Contribute

Features

  • πŸ€– AI-Driven Content Creation: Utilize the power of GPT-3.5 Turbo to generate slide content based on user's input.
  • 😎 Intelligent Slide Generation: The tool intelligently proposes titles and content for each slide.
  • 🎨 Customizable Themes: Choose color themes for your presentation, giving it a personalized touch.
  • πŸ™‚ User-Friendly Interface: Clear instructions and an intuitive design make the PowerPoint generation process seamless and straightforward.

Inner Structure of the project

If you want to learn how to use the GPT API for creating PowerPoint presentations or understand how the project is organized, check out CODE_STRUCTURE.md. 🧐 In this document, I explain the code and the relationships between different parts of the code.

How to use

If you want to try using this project, here is a step-by-step guide. Those who want to contribute to (which is welcome!), please check How to Contribute

Step 1: Star The Repo ⭐️

Star the repo to start using this project πŸ‘

star repo


Step 2: Clone It πŸ‘
  • Using Git

Open your terminal and run the following command:

git clone https://github.com/otahina/PowerPoint-Generator-Python-Project.git
  • Using Download ZIP
  1. Go to the GitHub page of the repository.
  2. Click on the green Code button.
  3. In the dropdown menu, select Download ZIP.

Step 3: Create a Virtual Environment πŸ“Ÿ

On Windows πŸͺŸ

  • Open your Command Prompt and navigate to your project's directory.
  • Run the command line by line.
    python -m venv venv
    .\venv\Scripts\activate
    pip install -r requirements.txt

On macOS and Linux 🐧

  • Open your Terminal and navigate to your project's directory.
  • Run the command line by line.
    python3 -m venv venv
    source venv/bin/activate
    pip install -r requirements.txt

Step 4: Setup API Keys πŸ”‘

⚠️ This step is very important to make the project work! please make sure if you set up everything correctly. Instruction ▢️ Setup the Secret Key and OpenAI Key


Step 5: Run πŸƒβ€

Navigate to myapp directory. Run flaskapp.py

python3 myapp/flaskapp.py

How to contribute

Thank you for considering how you can contribute to the project! ✨

Step 1: Star The Repo ⭐️

Star the repo to start your contribution ⭐️

star repo


Step 2: Fork it 🍴

On the GitHub page for this repository, click on the Button "Fork".

fork image


Step 3: Clone it πŸ‘
  • Method 1: GitHub Desktop

⚠️ NOTE: If you're not familiar with Git, using GitHub Desktop Application is a better start. If you choose this method, make sure to download it before continuing reading.

❗❗ Access link to download here.

  • Method 2: Git

Clone the forked repository. Open terminal (command prompt) and type:

git clone https://github.com/<your-github-username>/PowerPoint-Generator-Python-Project.git

This makes a local copy of the repository in your machine.

⚠️ Replace <your-github-username>!


Step 4: Create your feature branch 🌴

Always keep your local copy of the repository updated with the original repository. Before making any changes and/or in an appropriate interval, follow the following steps:

  • Method 1: GitHub Desktop

Learn more about how to create new branch here and how to fetch and pull origin from/to your local machine here.

Learn more about how to fetch and pull origin from/to your local machine using GitHub Desktop here.

  • Method 2: Git

Run the following commands carefully to update your local repository.

# If you cloned a while ago, get the latest changes from upstream
git checkout main
git remote add upstream https://github.com/otahina/PowerPoint-Generator-Python-Project.git
git pull upstream main

# Make a feature branch (Always check your current branch is up to date before creating a new branch from it to avoid merge conflicts)
git checkout -b <branch-name>

Step 5: Pull Request πŸ–οΈ
  1. Open the GitHub website and find your forked repository.
  2. On your fork's GitHub page, click 'New Pull Request'.
  3. Ensure the base branch is the original repository's branch you want to merge into(main branch), and the compare branch is your feature branch.
  4. Click 'Create Pull Request', add a title and a brief description of your changes.

Thank you for your contribution! I'll check your pull request. πŸ˜€


If you want to learn more about how to contribute, visit CONTRIBUTING.md.

Setup the Secret Key and OpenAI Key

The application uses a secret key for session management and an OpenAI key for the GPT-3.5 Turbo API. These keys are defined as environment variables, and you can easily set them up using the provided .env.example file.

  1. Locate the file named .env.example in the project directory.
  2. Copy the contents of .env.example into a new file named .env.
  3. Replace the placeholder values with your actual keys:
SECRET_KEY=your_secret_key
OPENAI_KEY=your_openai_key
PEXELS_API_KEY=your_pexels_key

Here's a brief description of each key and how to obtain them:

SECRET_KEY: πŸ”This is used for web application security such as session management. You can create your own secure, random string for this.

OPENAI_KEY: πŸ€–This is required to access the OPENAI API. Although there's a limitation with the free version, it's sufficient for trying out this web application on your local machine. You can obtain this key by creating an account on the https://platform.openai.com.

PEXELS_API_KEY: 🏞️ This key is used for the free image search API provided by Pexels. It's very useful for adding creative images to your presentations. You can get this key by creating a free account on the https://www.pexels.com/api After registering, the API key is automatically generated for you.

Community Discussions πŸ—£οΈ

Have a question, idea, or want to contribute? Join us in Discussions!

Contributors ✨

description

Ota Hina

description

Gagandeep Singh

License πŸ“„

This project is licensed under the terms of the MIT license.

powerpoint-generator-python-project's People

Contributors

gaganmanku96 avatar otahina avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

powerpoint-generator-python-project's Issues

pptx.exc.PackageNotFoundError: Package not found at 'static/presentations/simple.pptx'

Hi, Hina
Congratulation on the beautiful app. I'm trying to run it, but it seems that when it is the time to the ppt be generated, the error arises: pptx.exc.PackageNotFoundError: Package not found at 'static/presentations/simple.pptx'
the simple and the other pptx files are opening correctly in my ppt app. I use mac.
Any thoughts for the solution? Thank you very much

Index Error

when i click create presentation after select the theme i got this error!!

Capture 2

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.