z-uo commited on
Commit
d341f72
1 Parent(s): 20513cf

new outstate feature

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -29,12 +29,12 @@ in_state = {
29
  ]
30
  }
31
 
32
- out_state = streamlit_sweethome3d(state = in_state)
33
 
34
  col1, col2 = st.columns(2)
35
  with col1:
36
  st.text('in state')
37
- st.code(json.dumps(in_state, indent=2))
38
  with col2:
39
  st.text('out state')
40
- st.code(out_state)
 
29
  ]
30
  }
31
 
32
+ out_state = streamlit_sweethome3d(state = in_state, out_state=True)
33
 
34
  col1, col2 = st.columns(2)
35
  with col1:
36
  st.text('in state')
37
+ st.code(json.dumps(in_state, indent=1))
38
  with col2:
39
  st.text('out state')
40
+ st.code(json.dumps(out_state, indent=1))