17 lines
444 B
Python
17 lines
444 B
Python
import streamlit as st
|
|
from utils.service_info import ServiceInfo
|
|
|
|
SERVICES = [
|
|
ServiceInfo(label="server", url="http://server:5000"),
|
|
ServiceInfo(label="triton", url="http://triton:8002/metrics"),
|
|
ServiceInfo(label="vector", url="http://vector:8686/health"),
|
|
]
|
|
|
|
|
|
def make_badge_markdown(x: ServiceInfo):
|
|
return f""
|
|
|
|
|
|
st.markdown("## Status")
|
|
st.markdown(" ".join(map(make_badge_markdown, SERVICES)))
|