livinNector commited on
Commit
1958afe
1 Parent(s): 0453f5f

modified app

Browse files
Files changed (2) hide show
  1. app.py +2 -1
  2. pages/utils.py +0 -1
app.py CHANGED
@@ -1,5 +1,6 @@
1
  from dash import Dash
2
  from index import layout, register_callbacks
 
3
 
4
  app = Dash(__name__, suppress_callback_exceptions=True)
5
  app.layout = layout
@@ -8,4 +9,4 @@ app.layout = layout
8
  register_callbacks(app)
9
 
10
  if __name__ == "__main__":
11
- app.run_server(debug=True)
 
1
  from dash import Dash
2
  from index import layout, register_callbacks
3
+ import os
4
 
5
  app = Dash(__name__, suppress_callback_exceptions=True)
6
  app.layout = layout
 
9
  register_callbacks(app)
10
 
11
  if __name__ == "__main__":
12
+ app.run_server(debug=True,port=os.environ["PORT"] or 8080)
pages/utils.py CHANGED
@@ -1,5 +1,4 @@
1
  # utils/navbar.py
2
- import dash_bootstrap_components as dbc
3
  from dash import html, dcc
4
 
5
  def navbar():
 
1
  # utils/navbar.py
 
2
  from dash import html, dcc
3
 
4
  def navbar():