Spaces:
Sleeping
Sleeping
Update index.py
Browse files
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)
|