Update app.py
Browse files
app.py
CHANGED
@@ -269,6 +269,24 @@ with gradio.Blocks() as synthesis_demo2:
|
|
269 |
|
270 |
btn2.click(fn=synthesis_from_spectrum, inputs=[perf], outputs=[pred, true])
|
271 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
272 |
all_synthesis_demos = gradio.TabbedInterface([synthesis_demo, synthesis_demo2], ["Spectrum from Data", "Spectrum from File"])
|
273 |
|
274 |
all_analysis_demos = gradio.TabbedInterface([analysis_demo], ["Geometry from Data"])
|
|
|
269 |
|
270 |
btn2.click(fn=synthesis_from_spectrum, inputs=[perf], outputs=[pred, true])
|
271 |
|
272 |
+
|
273 |
+
with gradio.Blocks() as synthesis_demo2:
|
274 |
+
with gradio.Row():
|
275 |
+
perf = gradio.DataFrame(headers=['Surge', 'Heave', 'Pitch'], value=numpy.zeros((64, 3)).to_list())
|
276 |
+
|
277 |
+
with gradio.Row():
|
278 |
+
btn2 = gradio.Button("Synthesize Geometry")
|
279 |
+
|
280 |
+
with gradio.Row():
|
281 |
+
with gradio.Column():
|
282 |
+
pred = gradio.Plot(label="Predicted")
|
283 |
+
|
284 |
+
with gradio.Column():
|
285 |
+
true = gradio.Plot(label="True")
|
286 |
+
|
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 Data", "Spectrum from File"])
|
291 |
|
292 |
all_analysis_demos = gradio.TabbedInterface([analysis_demo], ["Geometry from Data"])
|