This commit is contained in:
Xi Yan 2025-02-12 20:31:42 -08:00
parent 9a8f4025c1
commit b20742fce7
3 changed files with 5 additions and 5 deletions

View file

@ -9,8 +9,8 @@ from modules.api import llama_stack_api
def benchmarks():
# Eval Tasks Section
st.header("Eval Tasks")
# Benchmarks Section
st.header("Benchmarks")
benchmarks_info = {d.identifier: d.to_dict() for d in llama_stack_api.client.benchmarks.list()}

View file

@ -21,7 +21,7 @@ def resources_page():
"Shields",
"Scoring Functions",
"Datasets",
"Eval Tasks",
"Benchmarks",
]
icons = ["magic", "memory", "shield", "file-bar-graph", "database", "list-task"]
selected_resource = option_menu(
@ -35,7 +35,7 @@ def resources_page():
},
},
)
if selected_resource == "Eval Tasks":
if selected_resource == "Benchmarks":
benchmarks()
elif selected_resource == "Vector Databases":
vector_dbs()

View file

@ -14,7 +14,7 @@ from modules.api import llama_stack_api
def select_benchmark_1():
# Select Eval Tasks
# Select Benchmarks
st.subheader("1. Choose An Eval Task")
benchmarks = llama_stack_api.client.benchmarks.list()
benchmarks = {et.identifier: et for et in benchmarks}