alfraser commited on
Commit
f280a0c
·
1 Parent(s): 2aa6e54

Fixed bug where display value was preventing end point from starting

Browse files
Files changed (1) hide show
  1. src/st_helpers.py +4 -2
src/st_helpers.py CHANGED
@@ -26,12 +26,14 @@ def show_system_status_bar() -> None:
26
  num_endpoints = len(endpoints)
27
  running = []
28
  stopped = []
 
29
  for e in endpoints:
30
  status = hf_endpoint_status('alfraser', e)
31
  if status == HF_RUNNING:
32
  running.append(e)
33
  else:
34
- stopped.append(f'{e} ({status})')
 
35
 
36
  if len(running) == num_endpoints:
37
  message = "**:large_green_circle: System Status - All LLM Endpoints Running**"
@@ -49,7 +51,7 @@ def show_system_status_bar() -> None:
49
  all = []
50
  for e in running:
51
  all.append(f'* :large_green_circle: {e}')
52
- for e in stopped:
53
  all.append(f'* :red_circle: {e}')
54
  st.write('\n'.join(all))
55
  if st.button("Start all endpoints"):
 
26
  num_endpoints = len(endpoints)
27
  running = []
28
  stopped = []
29
+ stopped_with_status = []
30
  for e in endpoints:
31
  status = hf_endpoint_status('alfraser', e)
32
  if status == HF_RUNNING:
33
  running.append(e)
34
  else:
35
+ stopped.append(e)
36
+ stopped_with_status.append(f'{e} ({status})')
37
 
38
  if len(running) == num_endpoints:
39
  message = "**:large_green_circle: System Status - All LLM Endpoints Running**"
 
51
  all = []
52
  for e in running:
53
  all.append(f'* :large_green_circle: {e}')
54
+ for e in stopped_with_status:
55
  all.append(f'* :red_circle: {e}')
56
  st.write('\n'.join(all))
57
  if st.button("Start all endpoints"):