Fix typing and minor issues
This commit is contained in:
parent
2db2253578
commit
72ab627a34
54 changed files with 635 additions and 589 deletions
|
|
@ -129,13 +129,17 @@ main > header > div > h1 {
|
|||
|
||||
.version-tag {
|
||||
border-radius: var(--border-radius);
|
||||
background: #ddd;
|
||||
display: inline-block;
|
||||
font-size: 1rem;
|
||||
padding: 3px 6px;
|
||||
padding: 3px 8px;
|
||||
margin-left: var(--small-padding)
|
||||
}
|
||||
|
||||
main > header .version-tag {
|
||||
background: var(--background-color);
|
||||
vertical-align: 4px;
|
||||
}
|
||||
|
||||
main > header > *:nth-child(2) {
|
||||
min-width: 250px;
|
||||
max-width: 550px;
|
||||
|
|
|
|||
|
|
@ -21,12 +21,13 @@ from .get_traces_table import get_traces_table
|
|||
|
||||
def create_dash_app(function_name: str, version: str, function_docs: str) -> Flask:
|
||||
accent_color = text_to_hex_color(function_name)
|
||||
function_name = snake_case_to_text(function_name)
|
||||
|
||||
app = Dash(
|
||||
function_name,
|
||||
requests_pathname_prefix=DASHBOARD_PATH + "/",
|
||||
server=Flask(__name__),
|
||||
title=snake_case_to_text(function_name),
|
||||
title=function_name,
|
||||
update_title=None,
|
||||
external_stylesheets=[
|
||||
"/assets/index.css",
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
from dash import html
|
||||
|
||||
from great_ai import __version__
|
||||
|
||||
from ....constants import GITHUB_LINK
|
||||
|
||||
|
||||
|
|
@ -8,7 +10,9 @@ def get_footer() -> html.Footer:
|
|||
[
|
||||
html.Div(
|
||||
[
|
||||
html.H6("GreatAI"),
|
||||
html.H6(
|
||||
["GreatAI", html.Span(__version__, className="version-tag")]
|
||||
),
|
||||
html.P(
|
||||
"A human-friendly framework for robust end-to-end AI deployments."
|
||||
),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue