Fixed API Key Handling: The script now raises an error if API_KEY is missing.
โœ… Better String Joining: Used "\n".join(data) to correctly format extracted text.
โœ… Structured System Prompt: The prompt is now clearer and formatted correctly.
โœ… Fixed Async Handling: Used asyncio.new_event_loop() to avoid conflicts with Streamlit.
โœ… PDF Extraction Reset: Clears data before extracting text from a new PDF.
โœ… Iterative PowerPoint Generation: Handles multiple chunks instead of just the first three.
โœ… Improved Error Handling: Displays errors in Streamlit if PowerPoint generation fails.

Ready to merge
This branch is ready to get merged automatically.

Sign up or log in to comment