Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -145,9 +145,9 @@ if st.session_state.chunked and not st.session_state.vector_created:
|
|
| 145 |
st.error(f"β Error creating vector store: {e}")
|
| 146 |
|
| 147 |
# Debugging Logs
|
| 148 |
-
st.write("π **PDF Loaded:**", st.session_state.pdf_loaded)
|
| 149 |
-
st.write("πΉ **Chunked:**", st.session_state.chunked)
|
| 150 |
-
st.write("π **Vector Store Created:**", st.session_state.vector_created)
|
| 151 |
|
| 152 |
|
| 153 |
# ----------------- Query Input -----------------
|
|
@@ -155,7 +155,7 @@ query = None
|
|
| 155 |
|
| 156 |
# Notify user if no PDF is provided in an aesthetic manner
|
| 157 |
if not st.session_state.pdf_path:
|
| 158 |
-
st.warning("
|
| 159 |
|
| 160 |
# Show input box ONLY when processing is fully complete
|
| 161 |
elif st.session_state.pdf_loaded and st.session_state.chunked and st.session_state.vector_created:
|
|
|
|
| 145 |
st.error(f"β Error creating vector store: {e}")
|
| 146 |
|
| 147 |
# Debugging Logs
|
| 148 |
+
#st.write("π **PDF Loaded:**", st.session_state.pdf_loaded)
|
| 149 |
+
#st.write("πΉ **Chunked:**", st.session_state.chunked)
|
| 150 |
+
#st.write("π **Vector Store Created:**", st.session_state.vector_created)
|
| 151 |
|
| 152 |
|
| 153 |
# ----------------- Query Input -----------------
|
|
|
|
| 155 |
|
| 156 |
# Notify user if no PDF is provided in an aesthetic manner
|
| 157 |
if not st.session_state.pdf_path:
|
| 158 |
+
st.warning("**No PDF detected!** Please enter a valid URL or upload a PDF file to proceed.", icon="β οΈ")
|
| 159 |
|
| 160 |
# Show input box ONLY when processing is fully complete
|
| 161 |
elif st.session_state.pdf_loaded and st.session_state.chunked and st.session_state.vector_created:
|