sohojoe commited on
Commit
397a2fa
1 Parent(s): 57d3a27

add reboot button

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -52,13 +52,17 @@ async def main():
52
  col1, col2 = st.columns(2)
53
 
54
  with col1:
55
- nested_col1, nested_col2 = st.columns(2)
56
  with nested_col1:
57
  listening = st.checkbox("Listen", value=True)
58
  with nested_col2:
59
  looking = st.checkbox("Look", value=False)
60
  charles_actor_debug_output = st.empty()
61
  environment_state_ouput = st.empty()
 
 
 
 
62
 
63
  with col2:
64
  if "streamlit_av_queue" not in st.session_state:
 
52
  col1, col2 = st.columns(2)
53
 
54
  with col1:
55
+ nested_col1, nested_col2, nested_col3 = st.columns(3)
56
  with nested_col1:
57
  listening = st.checkbox("Listen", value=True)
58
  with nested_col2:
59
  looking = st.checkbox("Look", value=False)
60
  charles_actor_debug_output = st.empty()
61
  environment_state_ouput = st.empty()
62
+ with nested_col3:
63
+ if st.button('Reboot Server'):
64
+ st.write('Rebooting...')
65
+ subprocess.run(["sudo", "reboot"])
66
 
67
  with col2:
68
  if "streamlit_av_queue" not in st.session_state: