Show model version on dashboard
This commit is contained in:
parent
9e183bbfc0
commit
c5012e43a4
1 changed files with 22 additions and 9 deletions
|
|
@ -4,26 +4,29 @@ from ....helper import snake_case_to_text, strip_lines
|
|||
|
||||
|
||||
def get_description(
|
||||
function_name: str, function_docs: str, accent_color: str
|
||||
function_name: str, version: str, function_docs: str, accent_color: str
|
||||
) -> html.Div:
|
||||
return html.Div(
|
||||
[
|
||||
html.H1(
|
||||
f"{snake_case_to_text(function_name)} - dashboard",
|
||||
[
|
||||
f"{snake_case_to_text(function_name)} - dashboard",
|
||||
html.Span(version, className="version-tag"),
|
||||
],
|
||||
style={"color": accent_color},
|
||||
),
|
||||
dcc.Markdown(
|
||||
strip_lines(
|
||||
f"""
|
||||
> View the live data of your deployment here.
|
||||
> View the live data of your deployment here.
|
||||
|
||||
## Using the API
|
||||
## Using the API
|
||||
|
||||
You can find the available endpoints at [/docs](/docs).
|
||||
You can find the available endpoints at [/docs](/docs).
|
||||
|
||||
## Details
|
||||
## Details
|
||||
|
||||
{function_docs}
|
||||
{function_docs}
|
||||
"""
|
||||
),
|
||||
className="description",
|
||||
|
|
|
|||
Loading…
Reference in a new issue