Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -298,17 +298,17 @@ with gradio.Blocks() as demo:
|
|
298 |
gradio.Markdown("Lattices are used in 3D-printing to reduce weight, and its usually good to use more than one type of lattice. This demo can create smooth transitions between different lattices to improve the strength of the part. To use the demo, set the characteristics of the lattice unit cells you want to use as the endpoints, select the length of the transitions, and then hit `Interpolate!`")
|
299 |
|
300 |
with gradio.Row():
|
301 |
-
with gradio.Column(min_width=
|
302 |
t1 = gradio.Dropdown(endpoint_options, label="Type 1", value="hamburger_box")
|
303 |
d1 = gradio.Dropdown(density_options, label="Density 1", value="1.00")
|
304 |
th1 = gradio.Dropdown(thickness_options, label="Thickness 1", value="2")
|
305 |
-
with gradio.Column(min_width=
|
306 |
img1 = gradio.Image(label="Endpoint 1", value=generate_unit_cell("hamburger_box", "1.00", "2"))
|
307 |
-
with gradio.Column(min_width=
|
308 |
t2 = gradio.Dropdown(endpoint_options, label="Type 2", value="hot_dog_box")
|
309 |
d2 = gradio.Dropdown(density_options, label="Density 2", value="1.00")
|
310 |
th2 = gradio.Dropdown(thickness_options, label="Thickness 2", value="2")
|
311 |
-
with gradio.Column(min_width=
|
312 |
img2 = gradio.Image(label="Endpoint 2", value=generate_unit_cell("hot_dog_box", "1.00", "2"))
|
313 |
|
314 |
lattice_inputs_1 = [t1, d1, th1]
|
|
|
298 |
gradio.Markdown("Lattices are used in 3D-printing to reduce weight, and its usually good to use more than one type of lattice. This demo can create smooth transitions between different lattices to improve the strength of the part. To use the demo, set the characteristics of the lattice unit cells you want to use as the endpoints, select the length of the transitions, and then hit `Interpolate!`")
|
299 |
|
300 |
with gradio.Row():
|
301 |
+
with gradio.Column(min_width=200):
|
302 |
t1 = gradio.Dropdown(endpoint_options, label="Type 1", value="hamburger_box")
|
303 |
d1 = gradio.Dropdown(density_options, label="Density 1", value="1.00")
|
304 |
th1 = gradio.Dropdown(thickness_options, label="Thickness 1", value="2")
|
305 |
+
with gradio.Column(min_width=200):
|
306 |
img1 = gradio.Image(label="Endpoint 1", value=generate_unit_cell("hamburger_box", "1.00", "2"))
|
307 |
+
with gradio.Column(min_width=200):
|
308 |
t2 = gradio.Dropdown(endpoint_options, label="Type 2", value="hot_dog_box")
|
309 |
d2 = gradio.Dropdown(density_options, label="Density 2", value="1.00")
|
310 |
th2 = gradio.Dropdown(thickness_options, label="Thickness 2", value="2")
|
311 |
+
with gradio.Column(min_width=200):
|
312 |
img2 = gradio.Image(label="Endpoint 2", value=generate_unit_cell("hot_dog_box", "1.00", "2"))
|
313 |
|
314 |
lattice_inputs_1 = [t1, d1, th1]
|