Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -151,6 +151,7 @@ st.write("π **Vector Store Created:**", st.session_state.vector_created)
|
|
151 |
|
152 |
|
153 |
# ----------------- Query Input -----------------
|
|
|
154 |
# Ensure the query input appears ONLY after the document is fully processed
|
155 |
if st.session_state.pdf_loaded and st.session_state.chunked and st.session_state.vector_created:
|
156 |
query = st.text_input("π Ask a question about the document:")
|
|
|
151 |
|
152 |
|
153 |
# ----------------- Query Input -----------------
|
154 |
+
query = ""
|
155 |
# Ensure the query input appears ONLY after the document is fully processed
|
156 |
if st.session_state.pdf_loaded and st.session_state.chunked and st.session_state.vector_created:
|
157 |
query = st.text_input("π Ask a question about the document:")
|