-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.py
36 lines (28 loc) · 791 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
36
# LAUNCH THE APP
# Import packages
import dash
from dash import html
import dash_bootstrap_components as dbc
# Additional CSS code
from assets import *
# --------------------------- CREATE APP -------------------------------
# Create the app
app = dash.Dash(
__name__,
#assets_folder='assets',
external_stylesheets = [dbc.themes.SANDSTONE,
dbc.icons.BOOTSTRAP],
suppress_callback_exceptions = True,
use_pages = True
)
# Server
server = app.server
# App layout
app.title = ('NetFlax Tax')
app.layout = html.Div(children=[
dash.page_container
])
# Run the app
if __name__ == '__main__':
# Set debug to True when producing. Change port and host when deploying!
app.run_server(host = '0.0.0.0', port = '8080', debug = False)