Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -251,7 +251,7 @@ def handle_userinput(user_question: Optional[str]) -> None:
|
|
251 |
if user_question:
|
252 |
# Clear any existing related question buttons
|
253 |
if 'related_questions' in st.session_state:
|
254 |
-
|
255 |
|
256 |
async def run_search():
|
257 |
return await run_auto_search_pipe(user_question)
|
@@ -376,7 +376,7 @@ def main() -> None:
|
|
376 |
st.session_state.chat_history = []
|
377 |
st.session_state.sources_history = []
|
378 |
if 'related_questions' in st.session_state:
|
379 |
-
|
380 |
st.toast('Interactions reset. The next response will clear the history on the screen')
|
381 |
|
382 |
# Add a footer with the GitHub citation
|
|
|
251 |
if user_question:
|
252 |
# Clear any existing related question buttons
|
253 |
if 'related_questions' in st.session_state:
|
254 |
+
st.session_state.related_questions = []
|
255 |
|
256 |
async def run_search():
|
257 |
return await run_auto_search_pipe(user_question)
|
|
|
376 |
st.session_state.chat_history = []
|
377 |
st.session_state.sources_history = []
|
378 |
if 'related_questions' in st.session_state:
|
379 |
+
st.session_state.related_questions = []
|
380 |
st.toast('Interactions reset. The next response will clear the history on the screen')
|
381 |
|
382 |
# Add a footer with the GitHub citation
|