ccm commited on
Commit
aae44c3
·
1 Parent(s): 545950a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -12
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
- with gradio.Column():
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, true])
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
- 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, 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"])