cgeorgiaw HF Staff commited on
Commit
96095b3
·
1 Parent(s): 4299f4d

removing some vis

Browse files
Files changed (1) hide show
  1. app.py +11 -11
app.py CHANGED
@@ -90,11 +90,11 @@ def gradio_interface() -> gr.Blocks:
90
  n_field_periods = gr.Number(label="Number of Period Fields", value=3)
91
  generate_btn = gr.Button(value="Generate")
92
 
93
- with gr.Column(visible=True):
94
- boundary_plot = gr.Plot()
95
- interactive_plot = gr.Plot()
96
- boozer_plot = gr.Plot()
97
- flux_surface_plot = gr.Plot()
98
 
99
  def update_ui(mode):
100
  return (
@@ -118,8 +118,8 @@ def gradio_interface() -> gr.Blocks:
118
  rld_btn.click(get_boundary_from_leaderboard, dropdown, boundary) \
119
  .then(make_boundary_plot, boundary, boundary_plot) \
120
  .then(make_interactive_plot, boundary, interactive_plot) \
121
- .then(make_boozer_plot, boundary, boozer_plot) \
122
- .then(make_flux_surface_plot, boundary, flux_surface_plot)
123
 
124
 
125
  def get_boundary_vis_from_upload(uploaded_file):
@@ -133,8 +133,8 @@ def gradio_interface() -> gr.Blocks:
133
  upload_box.change(get_boundary_vis_from_upload, inputs=[upload_box], outputs=boundary) \
134
  .then(make_boundary_plot, boundary, boundary_plot) \
135
  .then(make_interactive_plot, boundary, interactive_plot) \
136
- .then(make_boozer_plot, boundary, boozer_plot) \
137
- .then(make_flux_surface_plot, boundary, flux_surface_plot)
138
 
139
  def generate_random_boundary(aspect_ratio, elongation, rotational_transform, n_field_periods):
140
  boundary = initial_guess.generate_rotating_ellipse(
@@ -145,8 +145,8 @@ def gradio_interface() -> gr.Blocks:
145
  generate_btn.click(generate_random_boundary, [aspect_ratio, elongation, rotational_transform, n_field_periods], boundary) \
146
  .then(make_boundary_plot, boundary, boundary_plot) \
147
  .then(make_interactive_plot, boundary, interactive_plot) \
148
- .then(make_boozer_plot, boundary, boozer_plot) \
149
- .then(make_flux_surface_plot, boundary, flux_surface_plot)
150
 
151
  return demo
152
 
 
90
  n_field_periods = gr.Number(label="Number of Period Fields", value=3)
91
  generate_btn = gr.Button(value="Generate")
92
 
93
+ # with gr.Column(visible=True):
94
+ boundary_plot = gr.Plot()
95
+ interactive_plot = gr.Plot()
96
+ # boozer_plot = gr.Plot()
97
+ # flux_surface_plot = gr.Plot()
98
 
99
  def update_ui(mode):
100
  return (
 
118
  rld_btn.click(get_boundary_from_leaderboard, dropdown, boundary) \
119
  .then(make_boundary_plot, boundary, boundary_plot) \
120
  .then(make_interactive_plot, boundary, interactive_plot) \
121
+ # .then(make_boozer_plot, boundary, boozer_plot) \
122
+ # .then(make_flux_surface_plot, boundary, flux_surface_plot)
123
 
124
 
125
  def get_boundary_vis_from_upload(uploaded_file):
 
133
  upload_box.change(get_boundary_vis_from_upload, inputs=[upload_box], outputs=boundary) \
134
  .then(make_boundary_plot, boundary, boundary_plot) \
135
  .then(make_interactive_plot, boundary, interactive_plot) \
136
+ # .then(make_boozer_plot, boundary, boozer_plot) \
137
+ # .then(make_flux_surface_plot, boundary, flux_surface_plot)
138
 
139
  def generate_random_boundary(aspect_ratio, elongation, rotational_transform, n_field_periods):
140
  boundary = initial_guess.generate_rotating_ellipse(
 
145
  generate_btn.click(generate_random_boundary, [aspect_ratio, elongation, rotational_transform, n_field_periods], boundary) \
146
  .then(make_boundary_plot, boundary, boundary_plot) \
147
  .then(make_interactive_plot, boundary, interactive_plot) \
148
+ # .then(make_boozer_plot, boundary, boozer_plot) \
149
+ # .then(make_flux_surface_plot, boundary, flux_surface_plot)
150
 
151
  return demo
152