mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-17 18:42:38 +00:00
navigation
This commit is contained in:
parent
06b9566eb6
commit
114595ce71
7 changed files with 148 additions and 6 deletions
18
llama_stack/distribution/ui/page/distribution/shields.py
Normal file
18
llama_stack/distribution/ui/page/distribution/shields.py
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
# All rights reserved.
|
||||
#
|
||||
# This source code is licensed under the terms described in the LICENSE file in
|
||||
# the root directory of this source tree.
|
||||
|
||||
import streamlit as st
|
||||
from modules.api import llama_stack_api
|
||||
|
||||
# Shields Section
|
||||
st.header("Shields")
|
||||
|
||||
shields_info = {
|
||||
s.identifier: s.to_dict() for s in llama_stack_api.client.shields.list()
|
||||
}
|
||||
|
||||
selected_shield = st.selectbox("Select a shield", list(shields_info.keys()))
|
||||
st.json(shields_info[selected_shield])
|
||||
Loading…
Add table
Add a link
Reference in a new issue