zolicsaki commited on
Commit
fb98142
·
verified ·
1 Parent(s): 7ef322c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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
- del st.session_state.related_questions
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
- del 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
 
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