ruff
All checks were successful
Security Scan / dependency-check (pull_request) Successful in 40s
Security Scan / security (pull_request) Successful in 46s
Test Suite / lint (pull_request) Successful in 40s
Test Suite / test (3.11) (pull_request) Successful in 1m40s
Test Suite / build (pull_request) Successful in 44s

This commit is contained in:
2025-09-16 08:12:36 -07:00
parent ea01ce596d
commit 89dcafd311
3 changed files with 28 additions and 35 deletions

View File

@@ -25,32 +25,23 @@ def create_app():
meta_tags=[ meta_tags=[
{ {
"name": "description", "name": "description",
"content": "Interactive embedding visualization tool for exploring high-dimensional vectors through dimensionality reduction techniques like PCA, t-SNE, and UMAP." "content": "Interactive embedding visualization tool for exploring high-dimensional vectors through dimensionality reduction techniques like PCA, t-SNE, and UMAP.",
},
{
"name": "author",
"content": "EmbeddingBuddy"
}, },
{"name": "author", "content": "EmbeddingBuddy"},
{ {
"name": "keywords", "name": "keywords",
"content": "embeddings, visualization, dimensionality reduction, PCA, t-SNE, UMAP, machine learning, data science" "content": "embeddings, visualization, dimensionality reduction, PCA, t-SNE, UMAP, machine learning, data science",
},
{
"name": "viewport",
"content": "width=device-width, initial-scale=1.0"
}, },
{"name": "viewport", "content": "width=device-width, initial-scale=1.0"},
{ {
"property": "og:title", "property": "og:title",
"content": "EmbeddingBuddy - Interactive Embedding Visualization" "content": "EmbeddingBuddy - Interactive Embedding Visualization",
}, },
{ {
"property": "og:description", "property": "og:description",
"content": "Explore and visualize embedding vectors through interactive 2D/3D plots with multiple dimensionality reduction techniques." "content": "Explore and visualize embedding vectors through interactive 2D/3D plots with multiple dimensionality reduction techniques.",
}, },
{ {"property": "og:type", "content": "website"},
"property": "og:type",
"content": "website"
}
], ],
) )

View File

@@ -38,20 +38,19 @@ EmbeddingBuddy is a modular Python Dash web application for interactive explorat
dbc.ModalTitle("About EmbeddingBuddy"), dbc.ModalTitle("About EmbeddingBuddy"),
close_button=True, close_button=True,
), ),
dbc.ModalBody([ dbc.ModalBody(
dcc.Markdown( [dcc.Markdown(self._get_about_content(), className="mb-0")]
self._get_about_content(), ),
className="mb-0" dbc.ModalFooter(
) [
]), dbc.Button(
dbc.ModalFooter([ "Close",
dbc.Button( id="about-modal-close",
"Close", color="secondary",
id="about-modal-close", n_clicks=0,
color="secondary", )
n_clicks=0 ]
) ),
]),
], ],
id="about-modal", id="about-modal",
is_open=False, is_open=False,
@@ -65,5 +64,5 @@ EmbeddingBuddy is a modular Python Dash web application for interactive explorat
color="outline-info", color="outline-info",
size="sm", size="sm",
n_clicks=0, n_clicks=0,
className="ms-2" className="ms-2",
) )

View File

@@ -24,13 +24,16 @@ class AppLayout:
[ [
html.Div( html.Div(
[ [
html.H1("EmbeddingBuddy", className="text-center mb-4 d-inline"), html.H1(
"EmbeddingBuddy",
className="text-center mb-4 d-inline",
),
html.Div( html.Div(
[self.about.create_about_button()], [self.about.create_about_button()],
className="float-end" className="float-end",
), ),
], ],
className="d-flex justify-content-between align-items-center" className="d-flex justify-content-between align-items-center",
), ),
# Load Transformers.js from CDN # Load Transformers.js from CDN
html.Script( html.Script(