Yara Kyrychenko commited on
Commit
33ac761
·
1 Parent(s): bf91c0c

update success text

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -100,6 +100,8 @@ def setup_messages():
100
 
101
  client = OpenAI(base_url="https://openrouter.ai/api/v1", api_key=st.secrets["OPENROUTER_API_KEY"])
102
 
 
 
103
  ### App interface
104
  with st.sidebar:
105
  st.markdown("# Let's talk!")
@@ -171,6 +173,9 @@ def form():
171
  setup_messages()
172
  st.rerun()
173
 
 
 
 
174
  if st.session_state.gotit and st.session_state.submitted == False:
175
  form()
176
 
@@ -194,8 +199,6 @@ elif st.session_state.inserted > 1:
194
  st.markdown('**Please copy the WORD and enter it into the survey field below.**')
195
 
196
  elif prompt := st.chat_input("Ask a polarizing question..."):
197
-
198
- st.success("Ask, request, or talk to the chatbot about something you consider **politically polarizing** or something that people from different US political parties might disagree about it.", icon='🎯')
199
 
200
  st.session_state.messages.append({"role": "user", "content": prompt})
201
  with st.chat_message("user"):
 
100
 
101
  client = OpenAI(base_url="https://openrouter.ai/api/v1", api_key=st.secrets["OPENROUTER_API_KEY"])
102
 
103
+ st.success("Ask, request, or talk to the chatbot about something you consider **politically polarizing** or something that people from different US political parties might disagree about it.", icon='🎯')
104
+
105
  ### App interface
106
  with st.sidebar:
107
  st.markdown("# Let's talk!")
 
173
  setup_messages()
174
  st.rerun()
175
 
176
+ if not st.session_state.gotit:
177
+ st.markdown("**Please read the instructions below before starting in the side bar to the left before starting.**")
178
+
179
  if st.session_state.gotit and st.session_state.submitted == False:
180
  form()
181
 
 
199
  st.markdown('**Please copy the WORD and enter it into the survey field below.**')
200
 
201
  elif prompt := st.chat_input("Ask a polarizing question..."):
 
 
202
 
203
  st.session_state.messages.append({"role": "user", "content": prompt})
204
  with st.chat_message("user"):