Spaces:
Runtime error
Runtime error
Undo
Browse files
app.py
CHANGED
|
@@ -308,20 +308,18 @@ 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=
|
| 312 |
-
|
| 313 |
-
|
| 314 |
-
|
| 315 |
-
|
| 316 |
-
|
| 317 |
-
|
| 318 |
-
|
| 319 |
-
|
| 320 |
-
|
| 321 |
-
|
| 322 |
-
|
| 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]
|
|
|
|
| 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]
|