Spaces:
Runtime error
Runtime error
A newer version of the Streamlit SDK is available:
1.49.1
GenSlides
GenSlides is a web application that generates PowerPoint slides from text content or PDF files. It is built using Streamlit and provides an easy-to-use interface for creating presentations quickly.
Features
- Generate PowerPoint slides from text content or PDF files.
- Customize the agenda and content type (text or PDF).
- Advanced options for setting the maximum number of pages and specifying page ranges.
- Download the generated slides directly from the application.
- By default, supports up to 20 pages (approximately 45,000 characters). Text length beyond this limit will be truncated.
- Currently supports Gemini models only (Gemini 1.5 Flash by default).
Installation
To install and run the application locally, follow these steps:
Clone the repository:
git clone https://github.com/yourusername/genslides.git cd genslides
Create a virtual environment and activate it:
python3 -m venv venv source venv/bin/activate # On Windows, use `venv\Scripts\activate`
Install the required dependencies:
pip install -r requirements.txt
Set the environment variable
GOOGLE_API_KEY
with your API key:export GOOGLE_API_KEY=your_google_api_key
On Windows:
set GOOGLE_API_KEY=your_google_api_key
Run the application:
streamlit run app.py
Usage
- Open the application in your web browser (usually at
http://localhost:8501
). - Enter the agenda for your presentation.
- Choose the content type (Text or PDF).
- If you choose Text, enter the text content.
- If you choose PDF, upload a PDF file.
- (Optional) Set advanced options such as the maximum number of pages and page range.
- Click on the "Generate Slides" button to create the PowerPoint slides.
- Once the slides are generated, download the file using the provided download button.
Credits
This project was developed by Asif Iqbal Khan. Feel free to customize the content as needed with appropriate attribution to the original author.