asalhi85 commited on
Commit
5c44d91
1 Parent(s): 85b5fba

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -115,7 +115,7 @@ with gr.Blocks(title=title,
115
  # gr.HTML("""<h4 style="color:navy;">2. Then, click "Infer" button to predict object instances. It will take about 15-20 seconds (on cpu)</h4>""")
116
 
117
  send_btn = gr.Button("Submit")
118
- send_btn.click(fn=inference, inputs=[input_url,input_image], outputs=[output_image])
119
 
120
  # gr.HTML("""<br/>""")
121
  # gr.HTML("""<h4 style="color:navy;">Reference</h4>""")
 
115
  # gr.HTML("""<h4 style="color:navy;">2. Then, click "Infer" button to predict object instances. It will take about 15-20 seconds (on cpu)</h4>""")
116
 
117
  send_btn = gr.Button("Submit")
118
+ send_btn.click(fn=inference, inputs=[input_url,input_image,gr.Slider(minimum=0.0, maximum=1.0, value=0.4, label="Minimum score")], outputs=[output_image])
119
 
120
  # gr.HTML("""<br/>""")
121
  # gr.HTML("""<h4 style="color:navy;">Reference</h4>""")