Update app.py
Browse files
app.py
CHANGED
|
@@ -1394,7 +1394,7 @@ with gradio.Blocks() as demo:
|
|
| 1394 |
num.change(fn=geometry, inputs=[num], outputs=[geo])
|
| 1395 |
|
| 1396 |
btn1.click(fn=randomize_analysis, inputs=[whence_commeth_geometry], outputs=[radio, length, height, width, diameter, num, geo])
|
| 1397 |
-
btn2.click(fn=simple_analysis, inputs=[num, whence_commeth_geometry, radio, length, width, height, diameter], outputs=[pred, true])
|
| 1398 |
with gradio.Tab("Synthesis"):
|
| 1399 |
with gradio.Row():
|
| 1400 |
with gradio.Column():
|
|
@@ -1419,6 +1419,6 @@ with gradio.Blocks() as demo:
|
|
| 1419 |
|
| 1420 |
btn1.click(fn=lambda: random.randint(1, 4999), inputs=[], outputs=num)
|
| 1421 |
num.change(fn=performance, inputs=[num], outputs=[perf])
|
| 1422 |
-
btn2.click(fn=simple_synthesis, inputs=[num], outputs=[pred, true])
|
| 1423 |
|
| 1424 |
demo.launch()
|
|
|
|
| 1394 |
num.change(fn=geometry, inputs=[num], outputs=[geo])
|
| 1395 |
|
| 1396 |
btn1.click(fn=randomize_analysis, inputs=[whence_commeth_geometry], outputs=[radio, length, height, width, diameter, num, geo])
|
| 1397 |
+
btn2.click(fn=simple_analysis, inputs=[num, whence_commeth_geometry, radio, length, width, height, diameter], outputs=[pred, true], api_name="analyze")
|
| 1398 |
with gradio.Tab("Synthesis"):
|
| 1399 |
with gradio.Row():
|
| 1400 |
with gradio.Column():
|
|
|
|
| 1419 |
|
| 1420 |
btn1.click(fn=lambda: random.randint(1, 4999), inputs=[], outputs=num)
|
| 1421 |
num.change(fn=performance, inputs=[num], outputs=[perf])
|
| 1422 |
+
btn2.click(fn=simple_synthesis, inputs=[num], outputs=[pred, true], api_name="synthesize")
|
| 1423 |
|
| 1424 |
demo.launch()
|