-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.py
More file actions
37 lines (27 loc) · 723 Bytes
/
app.py
File metadata and controls
37 lines (27 loc) · 723 Bytes
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
import dash
from dash import dcc, html
from flask import Flask
from transformers import pipeline
from components import navbar
from constants import EXTERNAL_STYLESHEETS
nav = navbar.Navbar()
def get_layout():
layout = html.Div(
[
dcc.Location(id="url", refresh=False),
nav.get_layout(),
html.Div(id="page-content", children=[], className="container-fluid"),
]
)
return layout
server = Flask(__name__)
app = dash.Dash(
__name__,
server=server,
external_stylesheets=EXTERNAL_STYLESHEETS,
title="LCBSI",
suppress_callback_exceptions=True,
)
app.title = "LCBSI"
app._favicon = "assets\\favicon\\favicon.ico"
app.layout = get_layout