-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathapp.py
More file actions
23 lines (19 loc) · 661 Bytes
/
app.py
File metadata and controls
23 lines (19 loc) · 661 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import dash
import dash_core_components as dcc
import dash_html_components as html
import dash_bootstrap_components as dbc
import os
app = dash.Dash(
__name__,
external_stylesheets=[dbc.themes.BOOTSTRAP],
# these meta_tags ensure content is scaled correctly on different devices
# see: https://www.w3schools.com/css/css_rwd_viewport.asp for more
meta_tags=[
{"name": "viewport", "content": "width=device-width, initial-scale=1"}
],
)
app.config.suppress_callback_exceptions = True
server = app.server
server.secret_key = os.environ.get('SECRET_KEY', 'my-secret-key')
if __name__ == '__main__':
app.run_server(debug=True)