Update app.py
Browse files
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 |
-
|
67 |
-
|
|
|
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:
|