Spaces:
Running on CPU Upgrade

Yara Kyrychenko commited on
Commit
24eeeaa
·
1 Parent(s): bed8540

fix question typo

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -100,8 +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
- if len(st.session_state.messages) == 1:
104
- 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='🎯')
105
 
106
  ### App interface
107
  with st.sidebar:
@@ -175,7 +175,7 @@ def form():
175
  st.rerun()
176
 
177
  if not st.session_state.gotit:
178
- st.markdown("**Please read the instructions in the side bar to the left before starting.**")
179
 
180
  if st.session_state.gotit and st.session_state.submitted == False:
181
  form()
@@ -199,7 +199,7 @@ elif st.session_state.inserted > 1:
199
  st.markdown(f'## POTATOES')
200
  st.markdown('**Please copy the WORD and enter it into the survey field below.**')
201
 
202
- elif prompt := st.chat_input("Ask a polarizing question..."):
203
 
204
  st.session_state.messages.append({"role": "user", "content": prompt})
205
  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
+ if len(st.session_state.messages) == 1 and st.session_state.inserted < 2:
104
+ 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.", icon='🎯')
105
 
106
  ### App interface
107
  with st.sidebar:
 
175
  st.rerun()
176
 
177
  if not st.session_state.gotit:
178
+ st.markdown("**Please read the instructions in the sidebar to the left before starting.**")
179
 
180
  if st.session_state.gotit and st.session_state.submitted == False:
181
  form()
 
199
  st.markdown(f'## POTATOES')
200
  st.markdown('**Please copy the WORD and enter it into the survey field below.**')
201
 
202
+ elif prompt := st.chat_input("Type to ask a question or respond..."):
203
 
204
  st.session_state.messages.append({"role": "user", "content": prompt})
205
  with st.chat_message("user"):