mikepastor11 commited on
Commit
2032029
1 Parent(s): 44573e0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -98,6 +98,10 @@ def prepare_conversation(vectorstore):
98
 
99
  def process_user_question(user_question):
100
 
 
 
 
 
101
  response = st.session_state.conversation({'question': user_question})
102
  # response = st.session_state.conversation({'summarization': user_question})
103
  st.session_state.chat_history = response['chat_history']
 
98
 
99
  def process_user_question(user_question):
100
 
101
+ if ! user_question :
102
+ print('question is null')
103
+ return
104
+
105
  response = st.session_state.conversation({'question': user_question})
106
  # response = st.session_state.conversation({'summarization': user_question})
107
  st.session_state.chat_history = response['chat_history']