Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -312,9 +312,9 @@ with gradio.Blocks() as demo:
|
|
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]
|
315 |
-
[x.change(fn=generate_unit_cell, inputs=lattice_inputs_1, outputs=[img1]) for x in lattice_inputs_1]
|
316 |
lattice_inputs_2 = [t2, d2, th2]
|
317 |
-
[x.change(fn=generate_unit_cell, inputs=lattice_inputs_2, outputs=[img2]) for x in lattice_inputs_2]
|
318 |
|
319 |
steps = gradio.Dropdown(interpolation_options, label="Interpolation Length",
|
320 |
value=random.choice(interpolation_options))
|
|
|
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]
|
315 |
+
[x.change(fn=generate_unit_cell, inputs=lattice_inputs_1, outputs=[img1], show_progress=False) for x in lattice_inputs_1]
|
316 |
lattice_inputs_2 = [t2, d2, th2]
|
317 |
+
[x.change(fn=generate_unit_cell, inputs=lattice_inputs_2, outputs=[img2], show_progress=False) for x in lattice_inputs_2]
|
318 |
|
319 |
steps = gradio.Dropdown(interpolation_options, label="Interpolation Length",
|
320 |
value=random.choice(interpolation_options))
|