-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmat_builder_ui.py
More file actions
32 lines (17 loc) · 1.31 KB
/
mat_builder_ui.py
File metadata and controls
32 lines (17 loc) · 1.31 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
from dash import Dash
from core import InteractivePipeline, InteractivePreprocessing, InteractiveSegmentation, InteractiveEnrichment
### MAIN application ###
def main() :
# Instantiate the Dash application.
app = Dash(__name__)
# By default, Dash applies validation to your callbacks, which performs checks such as validating the types of callback arguments and checking to see whether the specified Input and Output components actually have the specified properties. For full validation, all components within your callback must exist in the layout when your app starts, and you will see an error if they do not.
# However, in the case of more complex Dash apps that involve dynamic modification of the layout (such as multi-page apps), not every component appearing in your callbacks will be included in the initial layout. You can remove this restriction by disabling callback validation like this:
app.config.suppress_callback_exceptions = True
# Object representing the pipeline to be executed.
modules_pipeline = [InteractivePreprocessing,
InteractiveSegmentation,
InteractiveEnrichment]
pipeline = InteractivePipeline(app, modules_pipeline)
app.run_server(debug=True)
if __name__ == '__main__':
main()