-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.py
More file actions
93 lines (85 loc) · 2.38 KB
/
app.py
File metadata and controls
93 lines (85 loc) · 2.38 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
import os,sys,time
from glob import glob
from dash import Dash,html,dcc,register_page,page_container
import dash_bootstrap_components as dbc
app = Dash(
__name__,
assets_folder="assets",
pages_folder="pages",
use_pages=True,
suppress_callback_exceptions=True
)
dropdown_options = [
html.Li(
html.Span(
[
html.Img(src="assets/index.png"),
dcc.Link("index".upper(),href="/",className="dropdown-link")
]
)
),
html.Li(
html.Span(
[
html.Img(src="assets/register.png"),
dcc.Link("register".upper(),href="/register",className="dropdown-link")
]
)
),
html.Li(
html.Span(
[
html.Img(src="assets/reports.png"),
dcc.Link("reports".upper(),href="/reports",className="dropdown-link")
]
)
),
html.Li(
html.Span(
[
html.Img(src="assets/all_reports.jpeg"),
dcc.Link("all reports".upper(),href="/all_reports",className="dropdown-link")
]
)
),
html.Li(
html.Span(
[
html.Img(src="assets/paper.png"),
dcc.Link("papermill".upper(),href="/papermill",className="dropdown-link")
]
)
)
]
app.layout = dcc.Loading(
[
dcc.Location("url",refresh=False),
dcc.Store(id="tab-id-store",storage_type="session"),
html.Div(
[
html.Ul(
html.Li(
html.Span(
[
html.H1("Lab Menu".upper(),className="dropdown-button-title"),
html.Img(src="assets/doctors.png")
]
)
),
className="dropdown-button"
),
html.Div(html.Span(className="arrow"),className="arrow-space"),
html.Ul(dropdown_options,className="dropdown-box")
],
className="total-dropdown"
),
page_container
],
type="cube",
className="loading-cube"
)
server = app.server
# gunicorn -b 0.0.0.0:8050 --log-level debug app:server
if __name__ == '__main__':
app.run_server(host="0.0.0.0",port=8050)
# app.run()