ManasSharma07 commited on
Commit
61998ea
·
verified ·
1 Parent(s): c1ca7f9

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +2 -1
src/streamlit_app.py CHANGED
@@ -948,7 +948,8 @@ if atoms is not None:
948
  else: # FIRE
949
  opt = FIRE(opt_atoms_obj)
950
 
951
- opt.attach(streamlit_log, interval=1) # Removed lambda for simplicity if streamlit_log is defined correctly
 
952
 
953
  st.write(f"Running {task.lower()}...")
954
  opt.run(fmax=fmax, steps=max_steps)
 
948
  else: # FIRE
949
  opt = FIRE(opt_atoms_obj)
950
 
951
+ # opt.attach(streamlit_log, interval=1) # Removed lambda for simplicity if streamlit_log is defined correctly
952
+ opt.attach(lambda: streamlit_log(opt), interval=1)
953
 
954
  st.write(f"Running {task.lower()}...")
955
  opt.run(fmax=fmax, steps=max_steps)