Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -214,16 +214,16 @@ def app():
|
|
214 |
# <li><span style="color:#9F33FF">■</span> Truck</li>
|
215 |
# </ul>
|
216 |
# """)
|
217 |
-
gr.HTML("""
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
""")
|
227 |
#gr.Image(value = img, interactive = False, label = "Classes", height = 260, width = 410)
|
228 |
#gr.Examples(['./img_examples/Exam_1.png','./img_examples/Exam_2.png','./img_examples/Exam_3.png','./img_examples/Exam_4.png','./img_examples/Exam_5.png'], inputs=img_path,label = "Image Example", cache_examples = False)
|
229 |
#gr.Examples(['./video_examples/video_1.mp4', './video_examples/video_2.mp4','./video_examples/video_3.mp4','./video_examples/video_4.mp4','./video_examples/video_5.mp4'], inputs=vid_path, label = "Video Example", cache_examples = False)
|
@@ -256,6 +256,15 @@ def app():
|
|
256 |
value="None"
|
257 |
)
|
258 |
yolov9_infer = gr.Button(value="Inference")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
259 |
gr.Examples(['./img_examples/Exam_1.png','./img_examples/Exam_2.png','./img_examples/Exam_3.png','./img_examples/Exam_4.png','./img_examples/Exam_5.png'], inputs=img_path,label = "Image Example", cache_examples = False, examples_per_page = 4)
|
260 |
gr.Examples(['./video_examples/video_1.mp4', './video_examples/video_2.mp4','./video_examples/video_3.mp4','./video_examples/video_4.mp4','./video_examples/video_5.mp4'], inputs=vid_path, label = "Video Example", cache_examples = False, examples_per_page = 4)
|
261 |
|
|
|
214 |
# <li><span style="color:#9F33FF">■</span> Truck</li>
|
215 |
# </ul>
|
216 |
# """)
|
217 |
+
# gr.HTML("""
|
218 |
+
# <h2>Classes (Color)</h2>
|
219 |
+
# <ul>
|
220 |
+
# <li style="font-size:17px;"><span style="color:#FF3333">■</span> Bus</li>
|
221 |
+
# <li style="font-size:17px;"><span style="color:#3358FF">■</span> Bike</li>
|
222 |
+
# <li style="font-size:17px;"><span style="color:#33FF33">■</span> Car</li>
|
223 |
+
# <li style="font-size:17px;"><span style="color:#F6FF33">■</span> Pedestrian</li>
|
224 |
+
# <li style="font-size:17px;"><span style="color:#9F33FF">■</span> Truck</li>
|
225 |
+
# </ul>
|
226 |
+
# """)
|
227 |
#gr.Image(value = img, interactive = False, label = "Classes", height = 260, width = 410)
|
228 |
#gr.Examples(['./img_examples/Exam_1.png','./img_examples/Exam_2.png','./img_examples/Exam_3.png','./img_examples/Exam_4.png','./img_examples/Exam_5.png'], inputs=img_path,label = "Image Example", cache_examples = False)
|
229 |
#gr.Examples(['./video_examples/video_1.mp4', './video_examples/video_2.mp4','./video_examples/video_3.mp4','./video_examples/video_4.mp4','./video_examples/video_5.mp4'], inputs=vid_path, label = "Video Example", cache_examples = False)
|
|
|
256 |
value="None"
|
257 |
)
|
258 |
yolov9_infer = gr.Button(value="Inference")
|
259 |
+
gr.HTML("""
|
260 |
+
<p style="text-align:center; font-family:Arial; font-size:16px;">
|
261 |
+
<span style="display:inline-block; width:8px; height:8px; background:#FF3333;"></span> Bus
|
262 |
+
<span style="display:inline-block; width:8px; height:8px; background:#3358FF;"></span> Bike
|
263 |
+
<span style="display:inline-block; width:8px; height:8px; background:#33FF33;"></span> Car
|
264 |
+
<span style="display:inline-block; width:8px; height:8px; background:#F6FF33;"></span> Pedestrian
|
265 |
+
<span style="display:inline-block; width:8px; height:8px; background:#9F33FF;"></span> Truck
|
266 |
+
</p>
|
267 |
+
""")
|
268 |
gr.Examples(['./img_examples/Exam_1.png','./img_examples/Exam_2.png','./img_examples/Exam_3.png','./img_examples/Exam_4.png','./img_examples/Exam_5.png'], inputs=img_path,label = "Image Example", cache_examples = False, examples_per_page = 4)
|
269 |
gr.Examples(['./video_examples/video_1.mp4', './video_examples/video_2.mp4','./video_examples/video_3.mp4','./video_examples/video_4.mp4','./video_examples/video_5.mp4'], inputs=vid_path, label = "Video Example", cache_examples = False, examples_per_page = 4)
|
270 |
|