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.

sarim changed pull request status to merged

Sign up or log in to comment