ManasSharma07 commited on
Commit
f79665b
·
verified ·
1 Parent(s): fb15844

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +1 -1
src/streamlit_app.py CHANGED
@@ -1581,7 +1581,7 @@ if atoms is not None:
1581
  if "Optimization" in task and "Final Energy" in results: # Check if opt was successful
1582
  st.markdown("### Optimized Structure")
1583
 
1584
- opt_view = get_structure_viz2(opt_atoms_obj, style=viz_style, show_unit_cell=True, width=400, height=400)
1585
  st.components.v1.html(opt_view._make_html(), width=400, height=400)
1586
 
1587
  with tempfile.NamedTemporaryFile(delete=False, suffix=".xyz", mode="w+") as tmp_file_opt:
 
1581
  if "Optimization" in task and "Final Energy" in results: # Check if opt was successful
1582
  st.markdown("### Optimized Structure")
1583
 
1584
+ opt_view = get_structure_viz2(calc_atoms, style=viz_style, show_unit_cell=True, width=400, height=400)
1585
  st.components.v1.html(opt_view._make_html(), width=400, height=400)
1586
 
1587
  with tempfile.NamedTemporaryFile(delete=False, suffix=".xyz", mode="w+") as tmp_file_opt: