Update app.py
Browse files
app.py
CHANGED
|
@@ -270,7 +270,7 @@ with gradio.Blocks() as synthesis_demo2:
|
|
| 270 |
btn2.click(fn=synthesis_from_spectrum, inputs=[perf], outputs=[pred, true])
|
| 271 |
|
| 272 |
|
| 273 |
-
with gradio.Blocks() as
|
| 274 |
with gradio.Row():
|
| 275 |
perf = gradio.DataFrame(headers=['Surge', 'Heave', 'Pitch'], value=numpy.zeros((64, 3)).to_list())
|
| 276 |
|
|
@@ -287,7 +287,7 @@ with gradio.Blocks() as synthesis_demo2:
|
|
| 287 |
btn2.click(fn=synthesis_from_spectrum, inputs=[perf], outputs=[pred, true])
|
| 288 |
|
| 289 |
|
| 290 |
-
all_synthesis_demos = gradio.TabbedInterface([synthesis_demo, synthesis_demo2], ["Spectrum from
|
| 291 |
|
| 292 |
all_analysis_demos = gradio.TabbedInterface([analysis_demo], ["Geometry from Data"])
|
| 293 |
|
|
|
|
| 270 |
btn2.click(fn=synthesis_from_spectrum, inputs=[perf], outputs=[pred, true])
|
| 271 |
|
| 272 |
|
| 273 |
+
with gradio.Blocks() as synthesis_demo3:
|
| 274 |
with gradio.Row():
|
| 275 |
perf = gradio.DataFrame(headers=['Surge', 'Heave', 'Pitch'], value=numpy.zeros((64, 3)).to_list())
|
| 276 |
|
|
|
|
| 287 |
btn2.click(fn=synthesis_from_spectrum, inputs=[perf], outputs=[pred, true])
|
| 288 |
|
| 289 |
|
| 290 |
+
all_synthesis_demos = gradio.TabbedInterface([synthesis_demo, synthesis_demo2, synthesis_demo3], ["Spectrum from Dataset", "Spectrum from File", "Spectrum from DataFrame"])
|
| 291 |
|
| 292 |
all_analysis_demos = gradio.TabbedInterface([analysis_demo], ["Geometry from Data"])
|
| 293 |
|