test2
Browse files- streamlit_agent/mrkl_demo.py +10 -5
streamlit_agent/mrkl_demo.py
CHANGED
@@ -97,11 +97,16 @@ with st.form(key="form"):
|
|
97 |
|
98 |
output_container = st.empty()
|
99 |
if with_clear_container(submit_clicked):
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
|
|
|
|
|
|
|
|
|
|
105 |
|
106 |
# If we've saved this question, play it back instead of actually running LangChain
|
107 |
# (so that we don't exhaust our API calls unnecessarily)
|
|
|
97 |
|
98 |
output_container = st.empty()
|
99 |
if with_clear_container(submit_clicked):
|
100 |
+
with output_container.container():
|
101 |
+
output_container.text("user")
|
102 |
+
st.write(user_input)
|
103 |
+
# output_container = output_container.container()
|
104 |
+
# output_container.chat_message("user").write(user_input)
|
105 |
+
with output_container.container():
|
106 |
+
output_container.text("assistant")
|
107 |
+
# st.write(answer_container)
|
108 |
+
answer_container = output_container.text("assistant")
|
109 |
+
st_callback = StreamlitCallbackHandler(answer_container)
|
110 |
|
111 |
# If we've saved this question, play it back instead of actually running LangChain
|
112 |
# (so that we don't exhaust our API calls unnecessarily)
|