Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ import torch
|
|
3 |
import os
|
4 |
|
5 |
def getResult(filename):
|
6 |
-
model_name='
|
7 |
model = torch.hub.load( "/content/yolov5/",'custom', source='local', path = model_name, force_reload = True)
|
8 |
img = "/content/"+filename+""
|
9 |
results = model(img)
|
|
|
3 |
import os
|
4 |
|
5 |
def getResult(filename):
|
6 |
+
model_name='best.pt'
|
7 |
model = torch.hub.load( "/content/yolov5/",'custom', source='local', path = model_name, force_reload = True)
|
8 |
img = "/content/"+filename+""
|
9 |
results = model(img)
|