Spaces:
Runtime error
Runtime error
Fix
Browse files
app.py
CHANGED
@@ -2,6 +2,7 @@ import random
|
|
2 |
import gradio
|
3 |
import numpy
|
4 |
import tensorflow
|
|
|
5 |
import math
|
6 |
# from tensorflow.python.framework.ops import disable_eager_execution
|
7 |
|
@@ -309,17 +310,17 @@ def generate_unit_cell(t, d, th):
|
|
309 |
|
310 |
with gradio.Blocks() as demo:
|
311 |
with gradio.Row():
|
312 |
-
with gradio.Column():
|
313 |
t1 = gradio.Dropdown(endpoint_options, label="Type 1", value=random.choice(endpoint_options))
|
314 |
d1 = gradio.Dropdown(density_options, label="Density 1", value=random.choice(density_options))
|
315 |
th1 = gradio.Dropdown(thickness_options, label="Thickness 1", value=random.choice(thickness_options))
|
316 |
-
with gradio.Column():
|
317 |
img1 = gradio.Image(label="Endpoint 1")
|
318 |
-
with gradio.Column():
|
319 |
t2 = gradio.Dropdown(endpoint_options, label="Type 2", value=random.choice(endpoint_options))
|
320 |
d2 = gradio.Dropdown(density_options, label="Density 2", value=random.choice(density_options))
|
321 |
th2 = gradio.Dropdown(thickness_options, label="Thickness 2", value=random.choice(thickness_options))
|
322 |
-
with gradio.Column():
|
323 |
img2 = gradio.Image(label="Endpoint 2")
|
324 |
|
325 |
lattice_inputs_1 = [t1, d1, th1]
|
|
|
2 |
import gradio
|
3 |
import numpy
|
4 |
import tensorflow
|
5 |
+
import tensorflow.python.framework.ops
|
6 |
import math
|
7 |
# from tensorflow.python.framework.ops import disable_eager_execution
|
8 |
|
|
|
310 |
|
311 |
with gradio.Blocks() as demo:
|
312 |
with gradio.Row():
|
313 |
+
with gradio.Column(min_width=250):
|
314 |
t1 = gradio.Dropdown(endpoint_options, label="Type 1", value=random.choice(endpoint_options))
|
315 |
d1 = gradio.Dropdown(density_options, label="Density 1", value=random.choice(density_options))
|
316 |
th1 = gradio.Dropdown(thickness_options, label="Thickness 1", value=random.choice(thickness_options))
|
317 |
+
with gradio.Column(min_width=250):
|
318 |
img1 = gradio.Image(label="Endpoint 1")
|
319 |
+
with gradio.Column(min_width=250):
|
320 |
t2 = gradio.Dropdown(endpoint_options, label="Type 2", value=random.choice(endpoint_options))
|
321 |
d2 = gradio.Dropdown(density_options, label="Density 2", value=random.choice(density_options))
|
322 |
th2 = gradio.Dropdown(thickness_options, label="Thickness 2", value=random.choice(thickness_options))
|
323 |
+
with gradio.Column(min_width=250):
|
324 |
img2 = gradio.Image(label="Endpoint 2")
|
325 |
|
326 |
lattice_inputs_1 = [t1, d1, th1]
|