thak123 commited on
Commit
8b3c6e0
·
verified ·
1 Parent(s): 8b82b18

Update index.py

Browse files
Files changed (1) hide show
  1. index.py +13 -0
index.py CHANGED
@@ -1,5 +1,18 @@
1
  from app import app
2
 
3
  server = app.server
 
 
 
 
 
 
 
 
 
 
 
 
 
4
  if __name__ == '__main__':
5
  app.run_server(debug=True)
 
1
  from app import app
2
 
3
  server = app.server
4
+
5
+ def serve_content():
6
+ """
7
+ :return: html div component
8
+ """
9
+ return html.Div([
10
+ dcc.Location(id='url', refresh=False),
11
+ html.Div(id='page-content')
12
+ ])
13
+
14
+
15
+ app.layout = serve_content()
16
+
17
  if __name__ == '__main__':
18
  app.run_server(debug=True)