Spaces:
Running
Running
Update app.py
#1
by
samvish
- opened
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.