ccm commited on
Commit
5315785
·
1 Parent(s): 6a9056d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -260,7 +260,7 @@ with gradio.Blocks() as demo:
260
 
261
  whence_commeth_geometry.change(fn=geometry_change, inputs=[whence_commeth_geometry], outputs=[radio, height, width, diameter, length, num, true])
262
  num.change(fn=geometry, inputs=[num], outputs=[geo])
263
- btn1.click(fn=lambda: geometry(random.randint(1, 4999)), inputs=[], outputs=[geo])
264
  btn2.click(fn=simple_analysis, inputs=[num], outputs=[pred, true])
265
 
266
  with gradio.Tab("Synthesis"):
 
260
 
261
  whence_commeth_geometry.change(fn=geometry_change, inputs=[whence_commeth_geometry], outputs=[radio, height, width, diameter, length, num, true])
262
  num.change(fn=geometry, inputs=[num], outputs=[geo])
263
+ btn1.click(fn=lambda: num.update(value=random.randint(1, 4999)), inputs=[], outputs=[geo])
264
  btn2.click(fn=simple_analysis, inputs=[num], outputs=[pred, true])
265
 
266
  with gradio.Tab("Synthesis"):