fabiencasenave commited on
Commit
764e17a
1 Parent(s): ffb6fbf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -81,7 +81,10 @@ def sample_info(sample_id_str, fieldn):
81
  color, _ = r.render(scene)
82
 
83
 
84
- str__ = f"loading sample {sample_id_str}"
 
 
 
85
 
86
  return str__, color
87
 
@@ -89,7 +92,7 @@ def sample_info(sample_id_str, fieldn):
89
  if __name__ == "__main__":
90
 
91
  with gr.Blocks() as demo:
92
- d1 = gr.Slider(0, nb_samples, value=0, label="Training sample id", info=f"Choose between 0 and {nb_samples}")
93
  d2 = gr.Dropdown(field_names_train, value=field_names_train[0], label="Field name")
94
 
95
 
 
81
  color, _ = r.render(scene)
82
 
83
 
84
+
85
+ str__ = f"loading sample {sample_id_str}\n"
86
+ str__ += str(plaid_sample)+"\n"
87
+ str__ += f"number of nodes: {nodes.shape[0]}"
88
 
89
  return str__, color
90
 
 
92
  if __name__ == "__main__":
93
 
94
  with gr.Blocks() as demo:
95
+ d1 = gr.Slider(0, nb_samples, value=0, label="Training sample id", info="Choose between 0 and "+str(nb_samples))
96
  d2 = gr.Dropdown(field_names_train, value=field_names_train[0], label="Field name")
97
 
98