MilesCranmer commited on
Commit
2139b62
1 Parent(s): 2608088

refactor(gui): remove redundant Row

Browse files
Files changed (1) hide show
  1. 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.Row():
14
- # Plot of the example data:
15
- with gr.Column():
16
- self.example_plot = gr.Plot()
17
- with gr.Column():
18
- self.test_equation = gr.Radio(
19
- TEST_EQUATIONS, value=TEST_EQUATIONS[0], label="Test Equation"
20
- )
21
- self.num_points = gr.Slider(
22
- minimum=10,
23
- maximum=1000,
24
- value=200,
25
- label="Number of Data Points",
26
- step=1,
27
- )
28
- self.noise_level = gr.Slider(
29
- minimum=0, maximum=1, value=0.05, label="Noise Level"
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