valeriylo commited on
Commit
89b285a
·
verified ·
1 Parent(s): 11f85bd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -87,7 +87,10 @@ def get_conversation_chain(vectorstore, model_name):
87
 
88
 
89
  def handle_userinput(user_question):
90
-
 
 
 
91
  response = st.session_state.conversation({'question': user_question})
92
 
93
  st.session_state.chat_history = response['chat_history']
 
87
 
88
 
89
  def handle_userinput(user_question):
90
+
91
+ if user_question == None:
92
+ user_question = "привет"
93
+
94
  response = st.session_state.conversation({'question': user_question})
95
 
96
  st.session_state.chat_history = response['chat_history']