Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -130,16 +130,16 @@ if __name__ == "__main__":
|
|
130 |
with gr.Blocks(fill_height=True) as demo:
|
131 |
gr.Markdown(_HEADER_)
|
132 |
with gr.Row(variant="panel"):
|
133 |
-
with gr.Column(scale=1
|
134 |
d1 = gr.Slider(0, nb_samples-1, value=0, label="Training sample id", info="Choose between 0 and "+str(nb_samples-1))
|
135 |
output1 = gr.Text(label="Training sample info")
|
136 |
-
with gr.Column(scale=2
|
137 |
d2 = gr.Dropdown(field_names_train, value=field_names_train[0], label="Field name")
|
138 |
# output2 = gr.Image(label="Training sample visualization")
|
139 |
output2 = gr.Model3D(label="Training sample visualization")
|
140 |
|
141 |
d1.input(sample_info, [d1, d2], [output1, output2])
|
142 |
-
d2.input(sample_info, [d1, d2], [output1, output2])
|
143 |
|
144 |
demo.launch()
|
145 |
|
|
|
130 |
with gr.Blocks(fill_height=True) as demo:
|
131 |
gr.Markdown(_HEADER_)
|
132 |
with gr.Row(variant="panel"):
|
133 |
+
with gr.Column(scale=1):
|
134 |
d1 = gr.Slider(0, nb_samples-1, value=0, label="Training sample id", info="Choose between 0 and "+str(nb_samples-1))
|
135 |
output1 = gr.Text(label="Training sample info")
|
136 |
+
with gr.Column(scale=2):
|
137 |
d2 = gr.Dropdown(field_names_train, value=field_names_train[0], label="Field name")
|
138 |
# output2 = gr.Image(label="Training sample visualization")
|
139 |
output2 = gr.Model3D(label="Training sample visualization")
|
140 |
|
141 |
d1.input(sample_info, [d1, d2], [output1, output2])
|
142 |
+
d2.input(sample_info, [d1, d2], [output1, output2])
|
143 |
|
144 |
demo.launch()
|
145 |
|