Update app.py
Browse files
app.py
CHANGED
|
@@ -1,48 +1,48 @@
|
|
| 1 |
-
import dash
|
| 2 |
-
from dash import html, page_container
|
| 3 |
-
import dash_bootstrap_components as dbc
|
| 4 |
-
|
| 5 |
-
# ----------------------------#
|
| 6 |
-
# Initialize app
|
| 7 |
-
# ----------------------------#
|
| 8 |
-
app = dash.Dash(
|
| 9 |
-
__name__,
|
| 10 |
-
use_pages=True,
|
| 11 |
-
external_stylesheets=[dbc.themes.BOOTSTRAP],
|
| 12 |
-
suppress_callback_exceptions=True,
|
| 13 |
-
title="Breast Cancer Dashboard"
|
| 14 |
-
)
|
| 15 |
-
|
| 16 |
-
# ----------------------------#
|
| 17 |
-
# Header
|
| 18 |
-
# ----------------------------#
|
| 19 |
-
header = html.Header([
|
| 20 |
-
html.Div("Breast Cancer Project Dashboard", className="header"),
|
| 21 |
-
html.Nav([
|
| 22 |
-
dash.dcc.Link("Introduction", href="/", className="nav-link"),
|
| 23 |
-
dash.dcc.Link("Data Analysis", href="/data-analysis", className="nav-link"),
|
| 24 |
-
dash.dcc.Link("Prediction", href="/prediction", className="nav-link")
|
| 25 |
-
], className="navbar")
|
| 26 |
-
])
|
| 27 |
-
|
| 28 |
-
# ----------------------------#
|
| 29 |
-
# Footer
|
| 30 |
-
# ----------------------------#
|
| 31 |
-
footer = html.Footer([
|
| 32 |
-
html.Div("© 2025 Breast Cancer Analysis | October Rose Theme", className="footer")
|
| 33 |
-
])
|
| 34 |
-
|
| 35 |
-
# ----------------------------#
|
| 36 |
-
# Layout
|
| 37 |
-
# ----------------------------#
|
| 38 |
-
app.layout = html.Div([
|
| 39 |
-
header,
|
| 40 |
-
html.Div(page_container, className="main-container"),
|
| 41 |
-
footer
|
| 42 |
-
])
|
| 43 |
-
|
| 44 |
-
# ----------------------------#
|
| 45 |
-
# Run
|
| 46 |
-
# ----------------------------#
|
| 47 |
-
if __name__ == "__main__":
|
| 48 |
-
app.run(debug=True)
|
|
|
|
| 1 |
+
import dash
|
| 2 |
+
from dash import html, page_container
|
| 3 |
+
import dash_bootstrap_components as dbc
|
| 4 |
+
|
| 5 |
+
# ----------------------------#
|
| 6 |
+
# Initialize app
|
| 7 |
+
# ----------------------------#
|
| 8 |
+
app = dash.Dash(
|
| 9 |
+
__name__,
|
| 10 |
+
use_pages=True,
|
| 11 |
+
external_stylesheets=[dbc.themes.BOOTSTRAP],
|
| 12 |
+
suppress_callback_exceptions=True,
|
| 13 |
+
title="Breast Cancer Dashboard"
|
| 14 |
+
)
|
| 15 |
+
server = app.server
|
| 16 |
+
# ----------------------------#
|
| 17 |
+
# Header
|
| 18 |
+
# ----------------------------#
|
| 19 |
+
header = html.Header([
|
| 20 |
+
html.Div("Breast Cancer Project Dashboard", className="header"),
|
| 21 |
+
html.Nav([
|
| 22 |
+
dash.dcc.Link("Introduction", href="/", className="nav-link"),
|
| 23 |
+
dash.dcc.Link("Data Analysis", href="/data-analysis", className="nav-link"),
|
| 24 |
+
dash.dcc.Link("Prediction", href="/prediction", className="nav-link")
|
| 25 |
+
], className="navbar")
|
| 26 |
+
])
|
| 27 |
+
|
| 28 |
+
# ----------------------------#
|
| 29 |
+
# Footer
|
| 30 |
+
# ----------------------------#
|
| 31 |
+
footer = html.Footer([
|
| 32 |
+
html.Div("© 2025 Breast Cancer Analysis | October Rose Theme", className="footer")
|
| 33 |
+
])
|
| 34 |
+
|
| 35 |
+
# ----------------------------#
|
| 36 |
+
# Layout
|
| 37 |
+
# ----------------------------#
|
| 38 |
+
app.layout = html.Div([
|
| 39 |
+
header,
|
| 40 |
+
html.Div(page_container, className="main-container"),
|
| 41 |
+
footer
|
| 42 |
+
])
|
| 43 |
+
|
| 44 |
+
# ----------------------------#
|
| 45 |
+
# Run
|
| 46 |
+
# ----------------------------#
|
| 47 |
+
if __name__ == "__main__":
|
| 48 |
+
app.run(debug=True)
|