fabiencasenave commited on
Commit
354ae0c
·
verified ·
1 Parent(s): 1dbe039

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -127,19 +127,19 @@ def sample_info(sample_id_str, fieldn):
127
 
128
  if __name__ == "__main__":
129
 
130
- with gr.Blocks() as demo:
131
  gr.Markdown(_HEADER_)
132
  with gr.Row(variant="panel"):
133
- with gr.Column():
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():
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
 
 
127
 
128
  if __name__ == "__main__":
129
 
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, min_width=200):
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, min_width=600):
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