Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -326,7 +326,8 @@ with gr.Blocks(css=css_styling, title=page_title, theme=osium_theme) as demo:
|
|
326 |
|
327 |
with gr.Column():
|
328 |
gr.Markdown("### Your design space")
|
329 |
-
|
|
|
330 |
|
331 |
with gr.Row():
|
332 |
gr.Examples([example_inputs], [input_formula, input_phase, input_bccfcc, input_processing, input_microstructure])
|
@@ -334,7 +335,7 @@ with gr.Blocks(css=css_styling, title=page_title, theme=osium_theme) as demo:
|
|
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=[
|
338 |
show_progress=True,
|
339 |
queue=True,
|
340 |
every=0.5,
|
@@ -343,7 +344,7 @@ with gr.Blocks(css=css_styling, title=page_title, theme=osium_theme) as demo:
|
|
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=[
|
347 |
show_progress=True,
|
348 |
queue=True,
|
349 |
# every=2,
|
@@ -352,7 +353,7 @@ with gr.Blocks(css=css_styling, title=page_title, theme=osium_theme) as demo:
|
|
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=[
|
356 |
show_progress=True,
|
357 |
queue=True,
|
358 |
# every=2,
|
@@ -361,7 +362,43 @@ with gr.Blocks(css=css_styling, title=page_title, theme=osium_theme) as demo:
|
|
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=[
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
365 |
show_progress=True,
|
366 |
queue=True,
|
367 |
# every=2,
|
|
|
326 |
|
327 |
with gr.Column():
|
328 |
gr.Markdown("### Your design space")
|
329 |
+
output_plot_space_uncertainty = gr.Plot(type="plotly")
|
330 |
+
output_plot_space_hardness = gr.Plot(type="plotly")
|
331 |
|
332 |
with gr.Row():
|
333 |
gr.Examples([example_inputs], [input_formula, input_phase, input_bccfcc, input_processing, input_microstructure])
|
|
|
335 |
input_slicer_1.change(
|
336 |
fn=update_plot_fn_uncertainty,
|
337 |
inputs=[dropdown_1, input_slicer_1, dropdown_2, input_slicer_2, dropdown_3, input_slicer_3],
|
338 |
+
outputs=[output_plot_space_uncertainty],
|
339 |
show_progress=True,
|
340 |
queue=True,
|
341 |
every=0.5,
|
|
|
344 |
input_slicer_2.change(
|
345 |
fn=update_plot_fn_uncertainty,
|
346 |
inputs=[dropdown_1, input_slicer_1, dropdown_2, input_slicer_2, dropdown_3, input_slicer_3],
|
347 |
+
outputs=[output_plot_space_uncertainty],
|
348 |
show_progress=True,
|
349 |
queue=True,
|
350 |
# every=2,
|
|
|
353 |
input_slicer_3.change(
|
354 |
fn=update_plot_fn_uncertainty,
|
355 |
inputs=[dropdown_1, input_slicer_1, dropdown_2, input_slicer_2, dropdown_3, input_slicer_3],
|
356 |
+
outputs=[output_plot_space_uncertainty],
|
357 |
show_progress=True,
|
358 |
queue=True,
|
359 |
# every=2,
|
|
|
362 |
output_hardness.change(
|
363 |
fn=update_plot_fn_uncertainty,
|
364 |
inputs=[dropdown_1, input_slicer_1, dropdown_2, input_slicer_2, dropdown_3, input_slicer_3],
|
365 |
+
outputs=[output_plot_space_uncertainty],
|
366 |
+
show_progress=True,
|
367 |
+
queue=True,
|
368 |
+
# every=2,
|
369 |
+
)
|
370 |
+
|
371 |
+
input_slicer_1.change(
|
372 |
+
fn=update_plot_fn_hardness,
|
373 |
+
inputs=[dropdown_1, input_slicer_1, dropdown_2, input_slicer_2, dropdown_3, input_slicer_3],
|
374 |
+
outputs=[output_plot_space_hardness],
|
375 |
+
show_progress=True,
|
376 |
+
queue=True,
|
377 |
+
every=0.5,
|
378 |
+
)
|
379 |
+
|
380 |
+
input_slicer_2.change(
|
381 |
+
fn=update_plot_fn_hardness,
|
382 |
+
inputs=[dropdown_1, input_slicer_1, dropdown_2, input_slicer_2, dropdown_3, input_slicer_3],
|
383 |
+
outputs=[output_plot_space_hardness],
|
384 |
+
show_progress=True,
|
385 |
+
queue=True,
|
386 |
+
# every=2,
|
387 |
+
)
|
388 |
+
|
389 |
+
input_slicer_3.change(
|
390 |
+
fn=update_plot_fn_hardness,
|
391 |
+
inputs=[dropdown_1, input_slicer_1, dropdown_2, input_slicer_2, dropdown_3, input_slicer_3],
|
392 |
+
outputs=[output_plot_space_hardness],
|
393 |
+
show_progress=True,
|
394 |
+
queue=True,
|
395 |
+
# every=2,
|
396 |
+
)
|
397 |
+
|
398 |
+
output_hardness.change(
|
399 |
+
fn=update_plot_fn_hardness,
|
400 |
+
inputs=[dropdown_1, input_slicer_1, dropdown_2, input_slicer_2, dropdown_3, input_slicer_3],
|
401 |
+
outputs=[output_plot_space_hardness],
|
402 |
show_progress=True,
|
403 |
queue=True,
|
404 |
# every=2,
|