aloatalpine commited on
Commit
2b4b9ac
·
1 Parent(s): c3dac37

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -52,14 +52,15 @@ If a student asks for reward points, encourage them to engage in the session to
52
  """
53
 
54
  def main():
55
- cs_sidebar()
56
  cs_body()
 
 
57
 
58
  return None
59
 
60
  # sidebar
61
 
62
- def cs_sidebar():
63
 
64
  st.sidebar.markdown('''
65
  <small>Summary of the [docs](https://docs.streamlit.io/en/stable/api.html), as of [Streamlit v1.8.0](https://www.streamlit.io/).</small>
@@ -111,7 +112,7 @@ def cs_body():
111
  message_placeholder.markdown(full_response)
112
  st.session_state.messages.append({"role": "assistant", "content": full_response})
113
 
114
- return None
115
 
116
  # Run main()
117
 
 
52
  """
53
 
54
  def main():
 
55
  cs_body()
56
+ cs_sidebar(cs_body())
57
+
58
 
59
  return None
60
 
61
  # sidebar
62
 
63
+ def cs_sidebar(messages):
64
 
65
  st.sidebar.markdown('''
66
  <small>Summary of the [docs](https://docs.streamlit.io/en/stable/api.html), as of [Streamlit v1.8.0](https://www.streamlit.io/).</small>
 
112
  message_placeholder.markdown(full_response)
113
  st.session_state.messages.append({"role": "assistant", "content": full_response})
114
 
115
+ return st.session_state.messages
116
 
117
  # Run main()
118