Spaces:
Paused
fix input handling
Enhancements to Input Handling and Report Generation in Anupalan Karta Compliance Checker This contribution improves the usability, robustness, and performance of the app by: โ Fixing PDF Upload Bugs Ensures multi-page PDFs are parsed correctly and avoids issues with NoneType returns from empty pages. ๐ Improved Error Handling for URL Input Adds user-facing warnings for unreachable or invalid public policy URLs, improving clarity. ๐ง Prevents Duplicate AI Report Generation Adds a session-based state (ai_report_generated) to avoid unnecessary re-calls to the API, saving resources. ๐งน Cleaner UI & Sidebar Organization Streamlines the input mode options using st.sidebar and fixes misleading behaviors (e.g., fallback to warnings). ๐งช Ensures Accurate Framework Selection Connects selectedFw properly to run_check, allowing accurate filtering of results.