ccm commited on
Commit
e350313
·
1 Parent(s): e3974b2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -1368,7 +1368,11 @@ with gradio.Blocks() as demo:
1368
  btn2.click(fn=simple_analysis, inputs=[num, whence_commeth_geometry, radio, length, width, height, diameter], outputs=[pred, true])
1369
  with gradio.Tab("Synthesis"):
1370
  with gradio.Row():
1371
- with gradio.Column():
 
 
 
 
1372
  num = gradio.Number(42, label="Type the index of the shape you would like to use or randomly select it.")
1373
  btn1 = gradio.Button("Randomize")
1374
  with gradio.Column():
@@ -1384,6 +1388,7 @@ with gradio.Blocks() as demo:
1384
  with gradio.Column():
1385
  true = gradio.Plot(label="True")
1386
 
 
1387
  btn1.click(fn=lambda: random.randint(1, 4999), inputs=[], outputs=num)
1388
  num.change(fn=performance, inputs=[num], outputs=[perf])
1389
  btn2.click(fn=simple_synthesis, inputs=[num], outputs=[pred, true])
 
1368
  btn2.click(fn=simple_analysis, inputs=[num, whence_commeth_geometry, radio, length, width, height, diameter], outputs=[pred, true])
1369
  with gradio.Tab("Synthesis"):
1370
  with gradio.Row():
1371
+ with gradio.Column():
1372
+ whence_commeth_performance = gradio.Radio(
1373
+ ["Construct Spectrum from Table", "Pick Spectrum from Dataset"], label="How would you like to generate the desired response spectrum to synthesize from?", value="Construct Spectrum from Table"
1374
+ )
1375
+ table = gradio.TimeSeries(pandas.DatFrame(columns=["Frequency", 'Surge', 'Heave', 'Pitch']), interactive=true)
1376
  num = gradio.Number(42, label="Type the index of the shape you would like to use or randomly select it.")
1377
  btn1 = gradio.Button("Randomize")
1378
  with gradio.Column():
 
1388
  with gradio.Column():
1389
  true = gradio.Plot(label="True")
1390
 
1391
+
1392
  btn1.click(fn=lambda: random.randint(1, 4999), inputs=[], outputs=num)
1393
  num.change(fn=performance, inputs=[num], outputs=[perf])
1394
  btn2.click(fn=simple_synthesis, inputs=[num], outputs=[pred, true])