Update app.py
Browse files
app.py
CHANGED
@@ -152,12 +152,15 @@ def main():
|
|
152 |
# output container
|
153 |
output_container = st.empty()
|
154 |
if submit_clicked:
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
|
|
|
|
|
|
161 |
|
162 |
# answer_container = output_container.chat_message("assistant", avatar="🦜")
|
163 |
# st_callback = StreamlitCallbackHandler(answer_container,)
|
|
|
152 |
# output container
|
153 |
output_container = st.empty()
|
154 |
if submit_clicked:
|
155 |
+
st_callback = StreamlitCallbackHandler(st.container())
|
156 |
+
response = agent_run(user_input),callbacks = [st_callback])
|
157 |
+
st.write(response)
|
158 |
+
# output_container = output_container.container()
|
159 |
+
# output_container.chat_message("user").write(user_input)
|
160 |
+
# with st.chat_message("assistant"):
|
161 |
+
# st_callback = StreamlitCallbackHandler(st.container())
|
162 |
+
# response = agent.run(user_input, callbacks=[st_callback])
|
163 |
+
# st.write(response)
|
164 |
|
165 |
# answer_container = output_container.chat_message("assistant", avatar="🦜")
|
166 |
# st_callback = StreamlitCallbackHandler(answer_container,)
|