Spaces:
Runtime error
Runtime error
Update pages/chatbot.py
Browse files- pages/chatbot.py +2 -2
pages/chatbot.py
CHANGED
|
@@ -65,7 +65,7 @@ if st.session_state.question_index < len(questions):
|
|
| 65 |
if user_response:
|
| 66 |
st.session_state.responses.append(user_response)
|
| 67 |
st.session_state.question_index += 1
|
| 68 |
-
st.
|
| 69 |
|
| 70 |
# Once all questions are answered, calculate addiction level
|
| 71 |
elif st.session_state.addiction_score is None:
|
|
@@ -83,7 +83,7 @@ elif st.session_state.addiction_score is None:
|
|
| 83 |
st.session_state.responses = []
|
| 84 |
st.session_state.question_index = 0
|
| 85 |
st.session_state.addiction_score = None
|
| 86 |
-
st.
|
| 87 |
|
| 88 |
|
| 89 |
|
|
|
|
| 65 |
if user_response:
|
| 66 |
st.session_state.responses.append(user_response)
|
| 67 |
st.session_state.question_index += 1
|
| 68 |
+
st.rerun()
|
| 69 |
|
| 70 |
# Once all questions are answered, calculate addiction level
|
| 71 |
elif st.session_state.addiction_score is None:
|
|
|
|
| 83 |
st.session_state.responses = []
|
| 84 |
st.session_state.question_index = 0
|
| 85 |
st.session_state.addiction_score = None
|
| 86 |
+
st.rerun()
|
| 87 |
|
| 88 |
|
| 89 |
|