nagasurendra commited on
Commit
8d573ce
·
verified ·
1 Parent(s): bbc2907

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -7
app.py CHANGED
@@ -11,10 +11,9 @@ def safe_load_yolo_model(path):
11
  # Dictionary of model paths
12
  model_paths = {
13
  'YOLOv11': './data/yolo11n.pt',
14
- 'Crack & Pothole Detector': './data/best2.pt',
15
- 'Bridge Inspector': './data/bridge.pt',
16
- 'Road Surface Detector': './data/road.pt',
17
- 'Pipe Detector': './data/pipe.pt'
18
  }
19
 
20
  # Load models into memory
@@ -24,9 +23,7 @@ models = {name: safe_load_yolo_model(path) for name, path in model_paths.items()
24
  model_colors = {
25
  'YOLOv11': (0, 255, 0),
26
  'Crack & Pothole Detector': (255, 0, 0),
27
- 'Bridge Inspector': (0, 0, 255),
28
- 'Road Surface Detector': (255, 255, 0),
29
- 'Pipe Detector': (255, 0, 255)
30
  }
31
 
32
  def process_video(video, selected_model):
 
11
  # Dictionary of model paths
12
  model_paths = {
13
  'YOLOv11': './data/yolo11n.pt',
14
+ 'Crack & Pothole Detector': './data/best.pt',
15
+ 'Toll gates': './data/best2.pt'
16
+
 
17
  }
18
 
19
  # Load models into memory
 
23
  model_colors = {
24
  'YOLOv11': (0, 255, 0),
25
  'Crack & Pothole Detector': (255, 0, 0),
26
+ 'Toll gates': (0, 0, 255)
 
 
27
  }
28
 
29
  def process_video(video, selected_model):