Update app.py
Browse files
app.py
CHANGED
@@ -261,13 +261,9 @@ with gradio.Blocks() as synthesis_demo2:
|
|
261 |
btn2 = gradio.Button("Synthesize Geometry")
|
262 |
|
263 |
with gradio.Row():
|
264 |
-
|
265 |
-
pred = gradio.Plot(label="Predicted")
|
266 |
-
|
267 |
-
with gradio.Column():
|
268 |
-
true = gradio.Plot(label="True")
|
269 |
|
270 |
-
btn2.click(fn=synthesis_from_spectrum, inputs=[perf], outputs=[pred
|
271 |
|
272 |
|
273 |
with gradio.Blocks() as synthesis_demo3:
|
@@ -278,13 +274,9 @@ with gradio.Blocks() as synthesis_demo3:
|
|
278 |
btn2 = gradio.Button("Synthesize Geometry")
|
279 |
|
280 |
with gradio.Row():
|
281 |
-
|
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
|
288 |
|
289 |
|
290 |
all_synthesis_demos = gradio.TabbedInterface([synthesis_demo, synthesis_demo2, synthesis_demo3], ["Spectrum from Dataset", "Spectrum from File", "Spectrum from DataFrame"])
|
|
|
261 |
btn2 = gradio.Button("Synthesize Geometry")
|
262 |
|
263 |
with gradio.Row():
|
264 |
+
pred = gradio.Plot(label="Predicted")
|
|
|
|
|
|
|
|
|
265 |
|
266 |
+
btn2.click(fn=synthesis_from_spectrum, inputs=[perf], outputs=[pred)
|
267 |
|
268 |
|
269 |
with gradio.Blocks() as synthesis_demo3:
|
|
|
274 |
btn2 = gradio.Button("Synthesize Geometry")
|
275 |
|
276 |
with gradio.Row():
|
277 |
+
pred = gradio.Plot(label="Predicted")
|
|
|
|
|
|
|
|
|
278 |
|
279 |
+
btn2.click(fn=synthesis_from_spectrum, inputs=[perf], outputs=[pred])
|
280 |
|
281 |
|
282 |
all_synthesis_demos = gradio.TabbedInterface([synthesis_demo, synthesis_demo2, synthesis_demo3], ["Spectrum from Dataset", "Spectrum from File", "Spectrum from DataFrame"])
|