ccm commited on
Commit
d8c298b
·
1 Parent(s): 6e082a5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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=[img1])
321
- d2.change(fn=generate_unit_cell, inputs=[t2, d2, th2], outputs=[img1])
322
- th2.change(fn=generate_unit_cell, inputs=[t2, d2, th2], outputs=[img1])
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")