alfraser commited on
Commit
5ecd875
·
1 Parent(s): 59b2aff

Added the option to pause a failed endpoint in order to be able to kick it with a restart

Browse files
Files changed (1) hide show
  1. pages/900_System_Status.py +4 -0
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: