Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -81,8 +81,8 @@ else:
|
|
| 81 |
info = get_server(credentials, instance_name)
|
| 82 |
max_run_duration = info['scheduling']['maxRunDuration']['seconds']
|
| 83 |
last_start_timestamp = info['lastStartTimestamp']
|
| 84 |
-
get_time_remaining(last_start_timestamp, max_run_duration)
|
| 85 |
-
st.write(f'Max Remaining Seconds: {
|
| 86 |
|
| 87 |
with st.form("deactivate_form"):
|
| 88 |
token = st.text_input("Token")
|
|
|
|
| 81 |
info = get_server(credentials, instance_name)
|
| 82 |
max_run_duration = info['scheduling']['maxRunDuration']['seconds']
|
| 83 |
last_start_timestamp = info['lastStartTimestamp']
|
| 84 |
+
max_remaining_time = get_time_remaining(last_start_timestamp, max_run_duration)
|
| 85 |
+
st.write(f'Max Remaining Seconds: {max_remaining_time} s')
|
| 86 |
|
| 87 |
with st.form("deactivate_form"):
|
| 88 |
token = st.text_input("Token")
|