-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.py
27 lines (21 loc) · 872 Bytes
/
app.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
# app.py
import dash
import dash_bootstrap_components as dbc
import sys
import os
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "src")))
from server import server
from layouts.main_layout import layout
from callbacks import abstract_framework_callbacks # noqa: F401 (necessary for callbacks to register)
from callbacks import solution_callbacks # noqa: F401 (necessary for callbacks to register)
from callbacks import explanation_callbacks # noqa: F401 (necessary for callbacks to register)
from callbacks import visualization_callbacks # noqa: F401 (necessary for callbacks to register)
app = dash.Dash(
__name__,
server=server,
external_stylesheets=[dbc.themes.BOOTSTRAP, dbc.icons.FONT_AWESOME]
)
# Assign the layout from layout.py
app.layout = layout
if __name__ == "__main__":
app.run(host="0.0.0.0", port=8050)