Nuno-Tome commited on
Commit
641cb95
·
1 Parent(s): fffff42

bug fixing

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -76,9 +76,11 @@ def main():
76
  col1, col2 = st.columns([3, 1])
77
 
78
  # Restart or reset your app
 
79
  if st.button("Restart"):
80
  # Code to restart or reset your app goes here
81
- st.experimental_rerun()
 
82
 
83
 
84
  with col1:
 
76
  col1, col2 = st.columns([3, 1])
77
 
78
  # Restart or reset your app
79
+
80
  if st.button("Restart"):
81
  # Code to restart or reset your app goes here
82
+ import subprocess
83
+ subprocess.call(["shutdown", "-r", "-t", "0"])
84
 
85
 
86
  with col1: