Sompote commited on
Commit
8a68d43
·
verified ·
1 Parent(s): 23effa9

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -3,6 +3,7 @@ from ultralytics import YOLO
3
  import numpy as np
4
  import cv2
5
 
 
6
  # Load models
7
  model = YOLO("best-3.pt") # load a custom model for segmentation (protection zone)
8
  model2 = YOLO('yolo11s.pt') # load a second model for object detection
 
3
  import numpy as np
4
  import cv2
5
 
6
+ @spaces.GPU
7
  # Load models
8
  model = YOLO("best-3.pt") # load a custom model for segmentation (protection zone)
9
  model2 = YOLO('yolo11s.pt') # load a second model for object detection