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

fix more types and a goal message bug

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -100,7 +100,7 @@ def setup_messages():
100
 
101
  client = OpenAI(base_url="https://openrouter.ai/api/v1", api_key=st.secrets["OPENROUTER_API_KEY"])
102
 
103
- if st.session_state.inserted == 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
@@ -175,7 +175,7 @@ def form():
175
  st.rerun()
176
 
177
  if not st.session_state.gotit:
178
- st.markdown("**Please read the instructions below before starting in the side bar to the left before starting.**")
179
 
180
  if st.session_state.gotit and st.session_state.submitted == False:
181
  form()
 
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
 
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()