Spaces:
Runtime error
Runtime error
update app.py
Browse files26 unmodified lines2728293031323375 unmodified lines10911011111211311411526 unmodified lines"#7fff7f", "#bfff7f", "#ffff7f", "#ffbf7f"]fdic = {"family" : "Times New Roman","style" : "italic","size" : 15,"color" : "yellow",75 unmodified linesthreshold = gr.Slider(0, 1.0, value=0.9, label='threshold')gr.HTML("""<br/>""")gr.HTML("""<h4 style="color:navy;">4. Then, click "Infer" button to predict object instances. It will take about 10 seconds (on cpu)</h4>""")send_btn = gr.Button("Infer")send_btn.click(fn=infer, inputs=[input_image, model, threshold], outputs=[output_image])26 unmodified lines2728293031323375 unmodified lines10911011111211311411526 unmodified lines"#7fff7f", "#bfff7f", "#ffff7f", "#ffbf7f"]fdic = {"family" : "DejaVu Serif","style" : "italic","size" : 15,"color" : "yellow",75 unmodified linesthreshold = gr.Slider(0, 1.0, value=0.9, label='threshold')gr.HTML("""<br/>""")gr.HTML("""<h4 style="color:navy;">4. Then, click "Infer" button to predict object instances. It will take about 10 seconds (yolos-tiny) or 20 seconds (yolos-small).</h4>""")send_btn = gr.Button("Infer")send_btn.click(fn=infer, inputs=[input_image, model, threshold], outputs=[output_image])
app.py+2-2