Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -80,20 +80,23 @@ with gr.Blocks(title="DETR Object Detection by orYx Models") as demo:
|
|
80 |
}
|
81 |
</style>
|
82 |
<div style="font-family:'Times New Roman', 'Serif'; font-size:16pt; font-weight:bold; text-align:center; color:royalblue;">DETR Object Detection</div>
|
83 |
-
<img class="logo" src="
|
84 |
<h4 style="color:navy;">1. Select a model.</h4>
|
85 |
""")
|
86 |
model = gr.Radio(["detr-resnet-50", "detr-resnet-101"], value="detr-resnet-50", label="Model name")
|
87 |
|
88 |
gr.HTML("""<br/>""")
|
89 |
-
gr.HTML("""<h4 style="color:navy;">
|
90 |
-
|
91 |
|
92 |
with gr.Row():
|
93 |
input_image = gr.Image(label="Input image", type="pil")
|
94 |
output_image = gr.Image(label="Output image with predicted instances", type="pil")
|
95 |
|
96 |
-
gr.Examples(['
|
|
|
|
|
|
|
97 |
|
98 |
gr.HTML("""<br/>""")
|
99 |
gr.HTML("""<h4 style="color:navy;">3. Then, click "Infer" button to predict object instances. It will take about 10 seconds (on cpu)</h4>""")
|
|
|
80 |
}
|
81 |
</style>
|
82 |
<div style="font-family:'Times New Roman', 'Serif'; font-size:16pt; font-weight:bold; text-align:center; color:royalblue;">DETR Object Detection</div>
|
83 |
+
<img class="logo" src="oryx_logo (2).png" alt="Logo">
|
84 |
<h4 style="color:navy;">1. Select a model.</h4>
|
85 |
""")
|
86 |
model = gr.Radio(["detr-resnet-50", "detr-resnet-101"], value="detr-resnet-50", label="Model name")
|
87 |
|
88 |
gr.HTML("""<br/>""")
|
89 |
+
gr.HTML("""<h4 style="color:navy;">Please upload an image..</h4>""")
|
90 |
+
|
91 |
|
92 |
with gr.Row():
|
93 |
input_image = gr.Image(label="Input image", type="pil")
|
94 |
output_image = gr.Image(label="Output image with predicted instances", type="pil")
|
95 |
|
96 |
+
gr.Examples(['trees_traffic.jpg',
|
97 |
+
'traffic.jpg',
|
98 |
+
'flyover.jpg',
|
99 |
+
'Saudi_traffic.jpg'], inputs=input_image)
|
100 |
|
101 |
gr.HTML("""<br/>""")
|
102 |
gr.HTML("""<h4 style="color:navy;">3. Then, click "Infer" button to predict object instances. It will take about 10 seconds (on cpu)</h4>""")
|