ccm commited on
Commit
9387eb2
1 Parent(s): 2764489

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -307,13 +307,13 @@ with gradio.Blocks() as demo:
307
  d1 = gradio.Dropdown(density_options, label="Density 1", value="1.00")
308
  th1 = gradio.Dropdown(thickness_options, label="Thickness 1", value="2")
309
  with gradio.Column(min_width=200):
310
- img1 = gradio.Image(label="Endpoint 1", value=generate_unit_cell("hamburger_box", "1.00", "2"))
311
  with gradio.Column(min_width=200):
312
  t2 = gradio.Dropdown(endpoint_options, label="Type 2", value="hot_dog_box")
313
  d2 = gradio.Dropdown(density_options, label="Density 2", value="1.00")
314
  th2 = gradio.Dropdown(thickness_options, label="Thickness 2", value="2")
315
  with gradio.Column(min_width=200):
316
- img2 = gradio.Image(label="Endpoint 2", value=generate_unit_cell("hot_dog_box", "1.00", "2"))
317
 
318
  lattice_inputs_1 = [t1, d1, th1]
319
  [x.change(fn=generate_unit_cell, inputs=lattice_inputs_1, outputs=[img1], show_progress=False) for x in lattice_inputs_1]
 
307
  d1 = gradio.Dropdown(density_options, label="Density 1", value="1.00")
308
  th1 = gradio.Dropdown(thickness_options, label="Thickness 1", value="2")
309
  with gradio.Column(min_width=200):
310
+ img1 = gradio.Image(label="Endpoint 1")#, value=generate_unit_cell("hamburger_box", "1.00", "2"))
311
  with gradio.Column(min_width=200):
312
  t2 = gradio.Dropdown(endpoint_options, label="Type 2", value="hot_dog_box")
313
  d2 = gradio.Dropdown(density_options, label="Density 2", value="1.00")
314
  th2 = gradio.Dropdown(thickness_options, label="Thickness 2", value="2")
315
  with gradio.Column(min_width=200):
316
+ img2 = gradio.Image(label="Endpoint 2")#, value=generate_unit_cell("hot_dog_box", "1.00", "2"))
317
 
318
  lattice_inputs_1 = [t1, d1, th1]
319
  [x.change(fn=generate_unit_cell, inputs=lattice_inputs_1, outputs=[img1], show_progress=False) for x in lattice_inputs_1]