Aabbhishekk commited on
Commit
633c39a
β€’
1 Parent(s): b7341cc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -6
app.py CHANGED
@@ -152,12 +152,15 @@ def main():
152
  # output container
153
  output_container = st.empty()
154
  if submit_clicked:
155
- output_container = output_container.container()
156
- output_container.chat_message("user").write(user_input)
157
- with st.chat_message("assistant"):
158
- st_callback = StreamlitCallbackHandler(st.container())
159
- response = agent.run(user_input, callbacks=[st_callback])
160
- st.write(response)
 
 
 
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,)