OuroborosM commited on
Commit
9e3b7f0
·
1 Parent(s): ba6de26

update callback

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -463,7 +463,7 @@ if prompt := st.chat_input(placeholder="Input Your Request"):
463
 
464
  with st.chat_message("assistant"):
465
  # response = GPTfake(prompt)
466
- st_cb = StreamlitCallbackHandler(st.container(), expand_new_thoughts=False)
467
  response = agent.run(prompt, callbacks=[st_cb])
468
  # st.write(response)
469
  try:
 
463
 
464
  with st.chat_message("assistant"):
465
  # response = GPTfake(prompt)
466
+ st_cb = StreamlitCallbackHandler(st.container(), expand_new_thoughts=True, collapse_completed_thoughts=True)
467
  response = agent.run(prompt, callbacks=[st_cb])
468
  # st.write(response)
469
  try: