Spaces:
Runtime error
Runtime error
Added the option to pause a failed endpoint in order to be able to kick it with a restart
Browse files
pages/900_System_Status.py
CHANGED
@@ -61,6 +61,10 @@ if st_setup('LLM Arch'):
|
|
61 |
elif status == HF_FAILED:
|
62 |
with status_col:
|
63 |
st.error(message)
|
|
|
|
|
|
|
|
|
64 |
else:
|
65 |
refresh = True
|
66 |
with status_col:
|
|
|
61 |
elif status == HF_FAILED:
|
62 |
with status_col:
|
63 |
st.error(message)
|
64 |
+
with button_col:
|
65 |
+
if st.button("Pause (to restart)", key=f'action_{i}'):
|
66 |
+
pause_hf_endpoint('alfraser', e)
|
67 |
+
st.rerun()
|
68 |
else:
|
69 |
refresh = True
|
70 |
with status_col:
|