Update app.py
Browse files
app.py
CHANGED
|
@@ -221,9 +221,7 @@ elif prompt := st.chat_input("Type to ask a question or respond..."):
|
|
| 221 |
st.markdown(prompt)
|
| 222 |
|
| 223 |
if st.query_params["p"] == "5":
|
| 224 |
-
rate_limit_message = ""
|
| 225 |
-
An error has occurred with the chatbot. Please submit the conversation. Do not worry, this will not influence your compensation.
|
| 226 |
-
"""
|
| 227 |
st.session_state.messages.append(
|
| 228 |
{"role": "assistant", "content": rate_limit_message}
|
| 229 |
)
|
|
@@ -248,9 +246,7 @@ elif prompt := st.chat_input("Type to ask a question or respond..."):
|
|
| 248 |
{"role": "assistant", "content": response}
|
| 249 |
)
|
| 250 |
except:
|
| 251 |
-
rate_limit_message = ""
|
| 252 |
-
An error has occurred or you've reached the maximum conversation length. Please submit the conversation.
|
| 253 |
-
"""
|
| 254 |
st.session_state.messages.append(
|
| 255 |
{"role": "assistant", "content": rate_limit_message}
|
| 256 |
)
|
|
|
|
| 221 |
st.markdown(prompt)
|
| 222 |
|
| 223 |
if st.query_params["p"] == "5":
|
| 224 |
+
rate_limit_message = "Thank you for your question! You have been randomly assigned to a condition without a chatbot. **Please submit your interaction anyway** to get your chatbot word and proceed with the survey. Do not worry, this will not influence your compensation."
|
|
|
|
|
|
|
| 225 |
st.session_state.messages.append(
|
| 226 |
{"role": "assistant", "content": rate_limit_message}
|
| 227 |
)
|
|
|
|
| 246 |
{"role": "assistant", "content": response}
|
| 247 |
)
|
| 248 |
except:
|
| 249 |
+
rate_limit_message = "An error has occurred or you've reached the maximum conversation length. Please submit the conversation."
|
|
|
|
|
|
|
| 250 |
st.session_state.messages.append(
|
| 251 |
{"role": "assistant", "content": rate_limit_message}
|
| 252 |
)
|