Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -226,8 +226,9 @@ with col2:
|
|
226 |
word_limit = st.slider("Word limit:", 50, 500, 200)
|
227 |
|
228 |
# Only process the query if explicitly submitted
|
229 |
-
if st.session_state.submit_clicked and st.session_state.last_query:
|
230 |
st.session_state.submit_clicked = False
|
|
|
231 |
|
232 |
with st.spinner("Processing your question..."):
|
233 |
try:
|
@@ -247,6 +248,6 @@ if st.session_state.submit_clicked and st.session_state.last_query:
|
|
247 |
st.markdown("---")
|
248 |
st.markdown("""
|
249 |
### About this app
|
250 |
-
This application uses a Retrieval-Augmented Generation (RAG) system to answer questions about
|
251 |
It searches through a database of texts to find relevant passages and generates answers based on those passages.
|
252 |
""")
|
|
|
226 |
word_limit = st.slider("Word limit:", 50, 500, 200)
|
227 |
|
228 |
# Only process the query if explicitly submitted
|
229 |
+
if st.session_state.submit_clicked and st.session_state.last_query and not st.session_state.processing:
|
230 |
st.session_state.submit_clicked = False
|
231 |
+
st.session_state.processing = True
|
232 |
|
233 |
with st.spinner("Processing your question..."):
|
234 |
try:
|
|
|
248 |
st.markdown("---")
|
249 |
st.markdown("""
|
250 |
### About this app
|
251 |
+
This application uses a Retrieval-Augmented Generation (RAG) system to answer questions about Indian spiritual texts.
|
252 |
It searches through a database of texts to find relevant passages and generates answers based on those passages.
|
253 |
""")
|