-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathapp.py
35 lines (22 loc) · 829 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
27
28
29
30
31
32
33
34
35
import flask
import dash
from layouts import get_app_layout
from app_callbacks import set_app_callbacks
import dash_bootstrap_components as dbc
import dash_core_components as dcc
import dash_html_components as html
from resources import external_scripts, external_stylesheets, meta_tags
# from components.EbDashClass import CustomIndexDash
app_name = 'EB Stats'
app = dash.Dash(app_name,
external_scripts = [
dbc.themes.BOOTSTRAP] + external_stylesheets,
meta_tags = meta_tags,
)
app.title = app_name
server = app.server
app.config.suppress_callback_exceptions = True
set_app_callbacks(app, app_name)
app.layout = get_app_layout(app, app_name)
if __name__ == '__main__':
app.run_server(debug=True, host="0.0.0.0")