ckmoraiz commited on
Commit
1d1ebdf
·
1 Parent(s): 2791cb8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -48,6 +48,7 @@ with gr.Blocks() as demo:
48
 
49
  specs = [cylinder, bore, stroke, cooling]
50
  out = gr.Textbox()
51
- gr.Interface(fn=infer, inputs=specs, outputs=out)
 
52
 
53
  demo.launch()
 
48
 
49
  specs = [cylinder, bore, stroke, cooling]
50
  out = gr.Textbox()
51
+ b1 = gr.Button("Calculate engine power!")
52
+ b1.click(fn=infer, inputs=specs, outputs=out)
53
 
54
  demo.launch()