Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -64,8 +64,11 @@ explored_dict = conf["domain_space"]["explored_space_dict"]
|
|
64 |
|
65 |
df_synth = load_domain_space(conf["domain_space"]["design_space_path"])
|
66 |
|
67 |
-
|
68 |
-
|
|
|
|
|
|
|
69 |
|
70 |
|
71 |
def process_microstructure(list_phases):
|
@@ -329,7 +332,7 @@ with gr.Blocks(css=css_styling, title=page_title, theme=osium_theme) as demo:
|
|
329 |
gr.Examples([example_inputs], [input_formula, input_phase, input_bccfcc, input_processing, input_microstructure])
|
330 |
|
331 |
input_slicer_1.change(
|
332 |
-
fn=
|
333 |
inputs=[dropdown_1, input_slicer_1, dropdown_2, input_slicer_2, dropdown_3, input_slicer_3],
|
334 |
outputs=[output_plot_space],
|
335 |
show_progress=True,
|
@@ -338,7 +341,7 @@ with gr.Blocks(css=css_styling, title=page_title, theme=osium_theme) as demo:
|
|
338 |
)
|
339 |
|
340 |
input_slicer_2.change(
|
341 |
-
fn=
|
342 |
inputs=[dropdown_1, input_slicer_1, dropdown_2, input_slicer_2, dropdown_3, input_slicer_3],
|
343 |
outputs=[output_plot_space],
|
344 |
show_progress=True,
|
@@ -347,7 +350,7 @@ with gr.Blocks(css=css_styling, title=page_title, theme=osium_theme) as demo:
|
|
347 |
)
|
348 |
|
349 |
input_slicer_3.change(
|
350 |
-
fn=
|
351 |
inputs=[dropdown_1, input_slicer_1, dropdown_2, input_slicer_2, dropdown_3, input_slicer_3],
|
352 |
outputs=[output_plot_space],
|
353 |
show_progress=True,
|
@@ -356,7 +359,7 @@ with gr.Blocks(css=css_styling, title=page_title, theme=osium_theme) as demo:
|
|
356 |
)
|
357 |
|
358 |
output_hardness.change(
|
359 |
-
fn=
|
360 |
inputs=[dropdown_1, input_slicer_1, dropdown_2, input_slicer_2, dropdown_3, input_slicer_3],
|
361 |
outputs=[output_plot_space],
|
362 |
show_progress=True,
|
|
|
64 |
|
65 |
df_synth = load_domain_space(conf["domain_space"]["design_space_path"])
|
66 |
|
67 |
+
plot_fn_uncertainty, update_plot_fn_uncertainty = create_plot(df_synth, explored_dict, target="uncertainty")
|
68 |
+
update_slider_fn_uncertainty = create_slicer_update(space_dict)
|
69 |
+
|
70 |
+
plot_fn_hardness, update_plot_fn_hardness = create_plot(df_synth, explored_dict, target="uncertainty")
|
71 |
+
update_slider_fn_hardness = create_slicer_update(space_dict)
|
72 |
|
73 |
|
74 |
def process_microstructure(list_phases):
|
|
|
332 |
gr.Examples([example_inputs], [input_formula, input_phase, input_bccfcc, input_processing, input_microstructure])
|
333 |
|
334 |
input_slicer_1.change(
|
335 |
+
fn=update_plot_fn_uncertainty,
|
336 |
inputs=[dropdown_1, input_slicer_1, dropdown_2, input_slicer_2, dropdown_3, input_slicer_3],
|
337 |
outputs=[output_plot_space],
|
338 |
show_progress=True,
|
|
|
341 |
)
|
342 |
|
343 |
input_slicer_2.change(
|
344 |
+
fn=update_plot_fn_uncertainty,
|
345 |
inputs=[dropdown_1, input_slicer_1, dropdown_2, input_slicer_2, dropdown_3, input_slicer_3],
|
346 |
outputs=[output_plot_space],
|
347 |
show_progress=True,
|
|
|
350 |
)
|
351 |
|
352 |
input_slicer_3.change(
|
353 |
+
fn=update_plot_fn_uncertainty,
|
354 |
inputs=[dropdown_1, input_slicer_1, dropdown_2, input_slicer_2, dropdown_3, input_slicer_3],
|
355 |
outputs=[output_plot_space],
|
356 |
show_progress=True,
|
|
|
359 |
)
|
360 |
|
361 |
output_hardness.change(
|
362 |
+
fn=update_plot_fn_uncertainty,
|
363 |
inputs=[dropdown_1, input_slicer_1, dropdown_2, input_slicer_2, dropdown_3, input_slicer_3],
|
364 |
outputs=[output_plot_space],
|
365 |
show_progress=True,
|