PranomVignesh commited on
Commit
a466d2a
·
1 Parent(s): 159b7b4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -6,7 +6,7 @@ from transformers import pipeline
6
  imageClassifier = pipeline(task="image-classification",
7
  model="PranomVignesh/Police-vs-Public")
8
 
9
- model = yolov5.load('./best.pt', device="cuda")
10
 
11
  def predict(image):
12
  results = model([image], size=224)
 
6
  imageClassifier = pipeline(task="image-classification",
7
  model="PranomVignesh/Police-vs-Public")
8
 
9
+ model = yolov5.load('./best.pt', device="cpu")
10
 
11
  def predict(image):
12
  results = model([image], size=224)