hasnatz commited on
Commit
046ea89
·
verified ·
1 Parent(s): d963f4c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +25 -3
app.py CHANGED
@@ -20,13 +20,35 @@ def predict(image, confidence=0.25, max_boxes=100):
20
 
21
  # Ready-made example images (local files or URLs)
22
  examples = [
23
- ["examples/worker_bing_construction_building_worker_000043 (8).jpg"]
24
-
 
 
 
 
 
 
25
  ]
26
 
 
27
  # Build Gradio UI
28
  with gr.Blocks() as demo:
29
- gr.Markdown("## V-Safe 🏗️ Object Detection Demo")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
30
 
31
  with gr.Row():
32
  with gr.Column():
 
20
 
21
  # Ready-made example images (local files or URLs)
22
  examples = [
23
+ ["examples/121113-F-LV838-027.jpg"],
24
+ ["examples/goggles_bing_construction_goggles_000109.jpg"],
25
+ ["examples/image-shows-busy-construction-site-where-concrete-mixer-truck-works-alongside-laborers-safety-gear-focus-teamwork-347908285 (Small).jpeg"],
26
+ ["examples/istockphoto-1324894706-612x612.jpg"],
27
+ ["examples/shutterstock_174689291.jpg"],
28
+ ["examples/worker_bing_construction_building_worker_000043 (8).jpg"],
29
+ ["examples/worker_bing_construction_building_worker_000066 (1).jpg"],
30
+ ["examples/worker_bing_construction_building_worker_000091 (2).jpg"]
31
  ]
32
 
33
+
34
  # Build Gradio UI
35
  with gr.Blocks() as demo:
36
+
37
+ gr.Markdown(
38
+ """
39
+ <div style="text-align: center;">
40
+ <img src="Frame 427318dhjfkhdklfh169.png" alt="Logo" style="height: 120px;">
41
+ </div>
42
+ """
43
+ )
44
+
45
+ gr.Markdown(
46
+ """
47
+ <div style="text-align: center;">
48
+ V-Safe: Construction Site Safety Detection Demo
49
+ </div>
50
+ """
51
+ )
52
 
53
  with gr.Row():
54
  with gr.Column():