Joel Woodfield commited on
Commit
b1278c1
·
1 Parent(s): 85ac76b

Improve layout

Browse files
Files changed (1) hide show
  1. frontends/gradio/main.py +10 -1
frontends/gradio/main.py CHANGED
@@ -185,6 +185,8 @@ def launch():
185
  value=default_x2_range,
186
  interactive=True,
187
  )
 
 
188
  x_selection_method = gr.Radio(
189
  label="How to select x points",
190
  choices=["Grid", "Random"],
@@ -198,10 +200,15 @@ def launch():
198
  value=default_sigma,
199
  interactive=True,
200
  )
201
- nsample = gr.Number(
 
 
202
  label="Number of points",
203
  value=default_num_points,
204
  interactive=True,
 
 
 
205
  )
206
 
207
  with gr.Row():
@@ -229,6 +236,8 @@ def launch():
229
  value=default_x2_col,
230
  visible=False,
231
  )
 
 
232
  y_col = gr.Number(
233
  label="y column index (0-based)",
234
  value=default_y_col,
 
185
  value=default_x2_range,
186
  interactive=True,
187
  )
188
+
189
+ with gr.Row():
190
  x_selection_method = gr.Radio(
191
  label="How to select x points",
192
  choices=["Grid", "Random"],
 
200
  value=default_sigma,
201
  interactive=True,
202
  )
203
+
204
+ with gr.Row():
205
+ nsample = gr.Slider(
206
  label="Number of points",
207
  value=default_num_points,
208
  interactive=True,
209
+ minimum=1,
210
+ maximum=100,
211
+ step=1,
212
  )
213
 
214
  with gr.Row():
 
236
  value=default_x2_col,
237
  visible=False,
238
  )
239
+
240
+ with gr.Row():
241
  y_col = gr.Number(
242
  label="y column index (0-based)",
243
  value=default_y_col,