DrishtiSharma commited on
Commit
bba0424
Β·
verified Β·
1 Parent(s): 24d3f29

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -63,8 +63,9 @@ elif pdf_source == "Enter a PDF URL":
63
  st.session_state.processed = False # Reset processing
64
  else:
65
  st.error("❌ Failed to download PDF. Check the URL.")
66
- except Exception as e: # <-- FIXED MISSING EXCEPTION HANDLING
67
- st.error(f"Error downloading PDF: {e}")
 
68
 
69
  # Step 2: Process PDF and Create Vector Store (Only if Not Processed)
70
  if pdf_path and not st.session_state.processed:
 
63
  st.session_state.processed = False # Reset processing
64
  else:
65
  st.error("❌ Failed to download PDF. Check the URL.")
66
+ except Exception as e:
67
+ st.error(f"Error downloading PDF: {e}")
68
+
69
 
70
  # Step 2: Process PDF and Create Vector Store (Only if Not Processed)
71
  if pdf_path and not st.session_state.processed: