Spaces:
Sleeping
Sleeping
MilesCranmer
commited on
Commit
•
2139b62
1
Parent(s):
2608088
refactor(gui): remove redundant Row
Browse files- gui/app.py +17 -19
gui/app.py
CHANGED
@@ -10,25 +10,23 @@ from processing import processing
|
|
10 |
|
11 |
class ExampleData:
|
12 |
def __init__(self, demo: gr.Blocks) -> None:
|
13 |
-
with gr.
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
)
|
31 |
-
self.data_seed = gr.Number(value=0, label="Random Seed")
|
32 |
|
33 |
# Set up plotting:
|
34 |
|
|
|
10 |
|
11 |
class ExampleData:
|
12 |
def __init__(self, demo: gr.Blocks) -> None:
|
13 |
+
with gr.Column():
|
14 |
+
self.example_plot = gr.Plot()
|
15 |
+
with gr.Column():
|
16 |
+
self.test_equation = gr.Radio(
|
17 |
+
TEST_EQUATIONS, value=TEST_EQUATIONS[0], label="Test Equation"
|
18 |
+
)
|
19 |
+
self.num_points = gr.Slider(
|
20 |
+
minimum=10,
|
21 |
+
maximum=1000,
|
22 |
+
value=200,
|
23 |
+
label="Number of Data Points",
|
24 |
+
step=1,
|
25 |
+
)
|
26 |
+
self.noise_level = gr.Slider(
|
27 |
+
minimum=0, maximum=1, value=0.05, label="Noise Level"
|
28 |
+
)
|
29 |
+
self.data_seed = gr.Number(value=0, label="Random Seed")
|
|
|
|
|
30 |
|
31 |
# Set up plotting:
|
32 |
|