-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.py
50 lines (46 loc) · 1.55 KB
/
index.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
import dash_bootstrap_components as dbc
import dash_core_components as dcc
import dash_html_components as html
from dash.dependencies import Input, Output
from app import app
import callbacks
import layouts
base_layout = html.Div([
dbc.NavbarSimple(
children=[
dbc.NavItem(dbc.NavLink('Performance', href='/performance')),
dbc.NavItem(dbc.NavLink('Dataset overview', href='/dataset-overview')),
dbc.NavItem(dbc.NavLink('Feature importance', href='/feature-importance')),
dbc.NavItem(dbc.NavLink('Detailed analysis', href='/detailed-analysis')),
dbc.DropdownMenu(
children=[
dbc.DropdownMenuItem('More pages', header=True),
dbc.DropdownMenuItem('Tutorial', href='/tutorial'),
dbc.DropdownMenuItem('My profile', href='https://andrecnf.github.io/'),
dbc.DropdownMenuItem('Thesis', href='#'),
],
nav=True,
in_navbar=True,
label='More',
),
],
brand='HAI',
brand_href='/',
color='dark',
dark=True,
sticky=True,
),
dcc.Location(id='url', refresh=False),
html.Div(id='page-content')
])
app.layout = base_layout
app.validation_layout = html.Div([
base_layout,
layouts.main_layout,
layouts.performance_layout,
layouts.dataset_overview_layout,
layouts.detail_analysis_layout,
layouts.feat_import_layout
])
if __name__ == '__main__':
app.run_server(debug=False)