Sign inSign up

cogniverse/pptx-genai

By cogniverse

•Updated about 2 years ago

Generating PowerPoint presentations using GEN AI (Azure OpenAI supported) with images, and charts.

Image
Integration & delivery
Machine learning & AI
Developer tools
0

304

cogniverse/pptx-genai repository overview

⁠Docker Image: AI-Powered PowerPoint Generator

This Docker image provides a Python-based web service, built using Flask and the python-pptx library, that allows users to generate PowerPoint presentations dynamically using Azure OpenAI GPT. The service leverages AI to design presentation slides by processing user inputs such as titles, subtitles, content, charts, and images, and formatting them into structured slides. It is ideal for business analysts, educators, and anyone looking to automate slide creation.

⁠Features:
  • Flask Web Framework: A lightweight API for managing PowerPoint generation requests.
  • PowerPoint Creation: Uses python-pptx to create slides with text, images, charts, and other elements.
  • Azure OpenAI GPT Integration: Automatically generates slide layouts and content based on natural language prompts.
  • Dynamic Slide Layouts: Supports multiple layouts (title, content, two-column, comparison), including dynamic positioning of charts and images.
  • User Input Flexibility: Users can provide inputs like title, subtitle, content, images, shapes, and charts, which are processed into slides.
  • Customizable Chart Types: Supports bar and line charts, dynamically placed alongside text content.
  • Dockerized for Portability: Easily deployable on any platform supporting Docker.
⁠How to Use:
  1. Build and Run the Docker Container:

    docker pull cogniverse/pptx-genai:v1
    
    docker run -d -p 5000:5000 cogniverse/pptx-genai
    
  2. Submit Requests: Use a simple REST API to submit slide content

    POST endpoint: /generate_presentation
    Body: JSON containing slide data (title, content, images, charts).
    
  3. Receive Output

    The service responds with a downloadable PowerPoint (.pptx) file containing the generated slides.

⁠Environment Variables
AZURE_OPENAI_API_KEY: Your Azure OpenAI GPT API key.
AZURE_OPENAI_ENDPOINT: The endpoint URL for the Azure OpenAI service.

⁠Example Request

{
"slides": [
 {
   "layout_num": 0,
   "title": "Business Report",
   "subtitle": "Q3 2024 Summary"
 },
 {
   "layout_num": 3,
   "title": "Key Metrics",
   "content": ["Revenue Growth", "Market Expansion", "Customer Retention"]
 }
]
}

Tag summary

Content type

Image

Digest

sha256:c90816c49…

Size

134.7 MB

Last updated

about 2 years ago

docker pull cogniverse/pptx-genai:v1