Elfsong commited on
Commit
fd84e6c
·
verified ·
1 Parent(s): 3cc50ff

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -0
app.py CHANGED
@@ -97,5 +97,13 @@ elif status == 'RUNNING':
97
  if submitted and token == os.getenv("EASY_TOKEN"):
98
  st.write("Lucky Reactor has been terminated.")
99
  response = deactivate_server(credentials, instance_name)
 
 
 
 
 
 
 
 
100
  else:
101
  st.write(f"Server is [{status}]. Please wait...")
 
97
  if submitted and token == os.getenv("EASY_TOKEN"):
98
  st.write("Lucky Reactor has been terminated.")
99
  response = deactivate_server(credentials, instance_name)
100
+
101
+ with st.form("extend_form"):
102
+ token = st.text_input("Token")
103
+ submitted = st.form_submit_button("Extend 🕊️")
104
+
105
+ if submitted and token == os.getenv("EASY_TOKEN"):
106
+ st.write("Lucky Reactor has been extended.")
107
+ response = schedule_server(credentials, instance_name, 1)
108
  else:
109
  st.write(f"Server is [{status}]. Please wait...")