File size: 657 Bytes
dfa545b
 
4956cb1
dfa545b
c4731f0
dfa545b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4956cb1
 
 
 
 
 
 
 
 
 
 
dfa545b
4956cb1
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
import dash_bootstrap_components as dbc
import dash
import fire

from larvaecount.ui.ui_utils import (
    get_navbar
)
from dash import Dash, html, dcc

app = Dash(
    __name__,
    use_pages = True,
    external_stylesheets=[dbc.themes.BOOTSTRAP]
)

app.layout = dbc.Container(
    children = [
        get_navbar(),
        dash.page_container
    ],
    class_name = "m-0 p-0 w-100 mw-100",
    id = "content-container"
)

def main(
    debug: bool = False,
    port: str = "8080",
    host: str = "127.0.0.1"
) -> None:
    app.run(
        debug = debug,
        host = host,
        port = port
    )

if __name__ == '__main__':
    fire.Fire(main)