ccm commited on
Commit
1c9c9f9
1 Parent(s): 94947c8

Better breakpoints?

Browse files
Files changed (1) hide show
  1. app.py +14 -12
app.py CHANGED
@@ -308,18 +308,20 @@ def interpolate(t1, t2, d1, d2, th1, th2, steps):
308
 
309
  with gradio.Blocks() as demo:
310
  with gradio.Row():
311
- with gradio.Column(min_width=250):
312
- t1 = gradio.Dropdown(endpoint_options, label="Type 1", value="hamburger_box")
313
- d1 = gradio.Dropdown(density_options, label="Density 1", value="1.00")
314
- th1 = gradio.Dropdown(thickness_options, label="Thickness 1", value="2")
315
- with gradio.Column(min_width=250):
316
- img1 = gradio.Image(label="Endpoint 1", value=generate_unit_cell("hamburger_box", "1.00", "2"))
317
- with gradio.Column(min_width=250):
318
- t2 = gradio.Dropdown(endpoint_options, label="Type 2", value="hot_dog_box")
319
- d2 = gradio.Dropdown(density_options, label="Density 2", value="1.00")
320
- th2 = gradio.Dropdown(thickness_options, label="Thickness 2", value="2")
321
- with gradio.Column(min_width=250):
322
- img2 = gradio.Image(label="Endpoint 2", value=generate_unit_cell("hot_dog_box", "1.00", "2"))
 
 
323
 
324
  lattice_inputs_1 = [t1, d1, th1]
325
  [x.change(fn=generate_unit_cell, inputs=lattice_inputs_1, outputs=[img1]) for x in lattice_inputs_1]
 
308
 
309
  with gradio.Blocks() as demo:
310
  with gradio.Row():
311
+ with gradio.Column(min_width=500):
312
+ with gradio.Column(min_width=250):
313
+ t1 = gradio.Dropdown(endpoint_options, label="Type 1", value="hamburger_box")
314
+ d1 = gradio.Dropdown(density_options, label="Density 1", value="1.00")
315
+ th1 = gradio.Dropdown(thickness_options, label="Thickness 1", value="2")
316
+ with gradio.Column(min_width=250):
317
+ img1 = gradio.Image(label="Endpoint 1", value=generate_unit_cell("hamburger_box", "1.00", "2"))
318
+ with gradio.Column(min_width=500):
319
+ with gradio.Column(min_width=250):
320
+ t2 = gradio.Dropdown(endpoint_options, label="Type 2", value="hot_dog_box")
321
+ d2 = gradio.Dropdown(density_options, label="Density 2", value="1.00")
322
+ th2 = gradio.Dropdown(thickness_options, label="Thickness 2", value="2")
323
+ with gradio.Column(min_width=250):
324
+ img2 = gradio.Image(label="Endpoint 2", value=generate_unit_cell("hot_dog_box", "1.00", "2"))
325
 
326
  lattice_inputs_1 = [t1, d1, th1]
327
  [x.change(fn=generate_unit_cell, inputs=lattice_inputs_1, outputs=[img1]) for x in lattice_inputs_1]