Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -317,9 +317,9 @@ with gradio.Blocks() as demo:
|
|
317 |
d2 = gradio.Dropdown(density_options, label="Density 2", value=random.choice(density_options))
|
318 |
th2 = gradio.Dropdown(thickness_options, label="Thickness 2", value=random.choice(thickness_options))
|
319 |
img2 = gradio.Image(label="Endpoint 2")
|
320 |
-
t2.change(fn=generate_unit_cell, inputs=[t2, d2, th2], outputs=[
|
321 |
-
d2.change(fn=generate_unit_cell, inputs=[t2, d2, th2], outputs=[
|
322 |
-
th2.change(fn=generate_unit_cell, inputs=[t2, d2, th2], outputs=[
|
323 |
steps = gradio.Dropdown(interpolation_options, label="Interpolation Length", value=random.choice(interpolation_options))
|
324 |
btn = gradio.Button("Run")
|
325 |
img = gradio.Image(label="Transition")
|
|
|
317 |
d2 = gradio.Dropdown(density_options, label="Density 2", value=random.choice(density_options))
|
318 |
th2 = gradio.Dropdown(thickness_options, label="Thickness 2", value=random.choice(thickness_options))
|
319 |
img2 = gradio.Image(label="Endpoint 2")
|
320 |
+
t2.change(fn=generate_unit_cell, inputs=[t2, d2, th2], outputs=[img2])
|
321 |
+
d2.change(fn=generate_unit_cell, inputs=[t2, d2, th2], outputs=[img2])
|
322 |
+
th2.change(fn=generate_unit_cell, inputs=[t2, d2, th2], outputs=[img2])
|
323 |
steps = gradio.Dropdown(interpolation_options, label="Interpolation Length", value=random.choice(interpolation_options))
|
324 |
btn = gradio.Button("Run")
|
325 |
img = gradio.Image(label="Transition")
|