Spaces:
Sleeping
Sleeping
update app.py
Browse files
app.py
CHANGED
@@ -27,7 +27,7 @@ COLORS = ["#ff7f7f", "#ff7fbf", "#ff7fff", "#bf7fff",
|
|
27 |
"#7fff7f", "#bfff7f", "#ffff7f", "#ffbf7f"]
|
28 |
|
29 |
fdic = {
|
30 |
-
"family" : "
|
31 |
"style" : "italic",
|
32 |
"size" : 15,
|
33 |
"color" : "yellow",
|
@@ -109,7 +109,7 @@ with gr.Blocks(title="YOLOS Object Detection - ClassCat",
|
|
109 |
threshold = gr.Slider(0, 1.0, value=0.9, label='threshold')
|
110 |
|
111 |
gr.HTML("""<br/>""")
|
112 |
-
gr.HTML("""<h4 style="color:navy;">4. Then, click "Infer" button to predict object instances. It will take about 10 seconds (
|
113 |
|
114 |
send_btn = gr.Button("Infer")
|
115 |
send_btn.click(fn=infer, inputs=[input_image, model, threshold], outputs=[output_image])
|
|
|
27 |
"#7fff7f", "#bfff7f", "#ffff7f", "#ffbf7f"]
|
28 |
|
29 |
fdic = {
|
30 |
+
"family" : "DejaVu Serif",
|
31 |
"style" : "italic",
|
32 |
"size" : 15,
|
33 |
"color" : "yellow",
|
|
|
109 |
threshold = gr.Slider(0, 1.0, value=0.9, label='threshold')
|
110 |
|
111 |
gr.HTML("""<br/>""")
|
112 |
+
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>""")
|
113 |
|
114 |
send_btn = gr.Button("Infer")
|
115 |
send_btn.click(fn=infer, inputs=[input_image, model, threshold], outputs=[output_image])
|