Improve URL input handling

#3

PDF Upload Bug Fixes
Properly handles multi-page PDF documents.

Skips empty pages safely to avoid errors caused by missing text.

Smarter URL Handling
Adds clear, visible warnings if a public policy URL is unreachable or invalid.

Prevents silent failures or blank text input.

Prevents Redundant AI Report Calls
Adds a session-aware flag to prevent users from triggering the “Generate AI Report” button multiple times unnecessarily.

Saves model usage and reduces token waste.

UI & Sidebar Clean-Up
Uses st.sidebar for all input steps, making the interface more organized.

Fixes misleading fallback behavior for file/URL inputs.

Accurate Framework Filtering
Connects selected compliance frameworks (selectedFw) directly to the rule engine.

anktechsol changed pull request status to merged

Sign up or log in to comment