Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -4,8 +4,10 @@ import panel as pn
|
|
4 |
|
5 |
pn.extension('vega')
|
6 |
|
7 |
-
# Selection widgets
|
8 |
-
|
|
|
|
|
9 |
|
10 |
# Bind the widgets to the create_plot function
|
11 |
@pn.depends(subgroup_select.param.value)
|
@@ -55,14 +57,14 @@ def create_plot(layers):
|
|
55 |
# Main layout 1
|
56 |
main_layout1 = pn.Column(
|
57 |
"# Data Interactive Visualization (SPARCS)",
|
58 |
-
|
59 |
pn.panel(create_plot, reactive=True),
|
60 |
)
|
61 |
|
62 |
# Main layout 2
|
63 |
main_layout2 = pn.Column(
|
64 |
"# Data Interactive Visualization (SPARCS)",
|
65 |
-
|
66 |
pn.panel(create_plot, reactive=True),
|
67 |
)
|
68 |
|
|
|
4 |
|
5 |
pn.extension('vega')
|
6 |
|
7 |
+
# Selection widgets 1
|
8 |
+
subgroup_select1 = pn.widgets.Select(name='Layers', options=["conv2d5", "conv2d6", "conv2d7", "conv2d8", "conv2d9", "linear1", "linear2"])
|
9 |
+
# Selection widgets 2
|
10 |
+
subgroup_select2 = pn.widgets.Select(name='Layers', options=["conv2d5", "conv2d6", "conv2d7", "conv2d8", "conv2d9", "linear1", "linear2"])
|
11 |
|
12 |
# Bind the widgets to the create_plot function
|
13 |
@pn.depends(subgroup_select.param.value)
|
|
|
57 |
# Main layout 1
|
58 |
main_layout1 = pn.Column(
|
59 |
"# Data Interactive Visualization (SPARCS)",
|
60 |
+
subgroup_select1,
|
61 |
pn.panel(create_plot, reactive=True),
|
62 |
)
|
63 |
|
64 |
# Main layout 2
|
65 |
main_layout2 = pn.Column(
|
66 |
"# Data Interactive Visualization (SPARCS)",
|
67 |
+
subgroup_select2,
|
68 |
pn.panel(create_plot, reactive=True),
|
69 |
)
|
70 |
|