Update app.py
Browse files
app.py
CHANGED
@@ -326,21 +326,21 @@ with gradio.Blocks() as synthesis_demo3:
|
|
326 |
|
327 |
|
328 |
with gradio.Blocks() as intro:
|
329 |
-
with gradio.Accordion("✨ Read about the ML model here! ✨", open=False):
|
330 |
-
|
331 |
-
|
332 |
-
|
333 |
-
|
334 |
-
|
335 |
-
|
336 |
-
|
337 |
|
338 |
|
339 |
|
340 |
|
341 |
-
|
342 |
-
|
343 |
-
|
344 |
|
345 |
-
|
346 |
-
|
|
|
326 |
|
327 |
|
328 |
with gradio.Blocks() as intro:
|
329 |
+
# with gradio.Accordion("✨ Read about the ML model here! ✨", open=False):
|
330 |
+
with gradio.Row():
|
331 |
+
with gradio.Column():
|
332 |
+
gradio.Markdown("# A Data-Driven Approach for Multi-Lattice Transitions")
|
333 |
+
gradio.HTML("Martha Baldwin, Carnegie Mellon University<br/>Nicholas A. Meisel, Penn State<br/>Christopher McComb, Carnegie Mellon University")
|
334 |
+
gradio.Markdown("Additive manufacturing is advantageous for producing lightweight components while maintaining function and form. This ability has been bolstered by the introduction of unit lattice cells and the gradation of those cells. In cases where loading varies throughout a part, it may be necessary to use multiple lattice cell types, also known as multi-lattice structures. In such structures, abrupt transitions between geometries may cause stress concentrations, making the boundary a primary failure point; thus, transition regions should be created between each lattice cell type. Although computational approaches have been proposed, smooth transition regions are still difficult to intuit and design, especially between lattices of drastically different geometries. This work demonstrates and assesses a method for using variational autoencoders to automate the creation of transitional lattice cells. In particular, the work focuses on identifying the relationships that exist within the latent space produced by the variational autoencoder. Through computational experimentation, it was found that the smoothness of transition regions was higher when the endpoints were located closer together in the latent space.")
|
335 |
+
with gradio.Column():
|
336 |
+
download = gradio.HTML("<a href=\"https://huggingface.co/spaces/cmudrc/lattice-interpolation/resolve/main/M169970.pdf\" style=\"width: 60%; display: block; margin: auto;\"><img src=\"https://huggingface.co/spaces/cmudrc/lattice-interpolation/resolve/main/coverpage.png\"></a>")
|
337 |
|
338 |
|
339 |
|
340 |
|
341 |
+
all_synthesis_demos = gradio.TabbedInterface([synthesis_demo, synthesis_demo2, synthesis_demo3], ["Spectrum from Dataset", "Spectrum from File", "Spectrum from DataFrame"])
|
342 |
+
|
343 |
+
all_analysis_demos = gradio.TabbedInterface([analysis_demo, analysis_demo_from_params], ["Geometry from Data", "Geometry from Parameters"])
|
344 |
|
345 |
+
demo = gradio.TabbedInterface([intro, all_analysis_demos, all_synthesis_demos], ["About", "Analysis", "Synthesis"])
|
346 |
+
demo.launch(debug=True)
|