Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -43,7 +43,7 @@ def check_file(file, suffix=''):
|
|
43 |
def load_model():
|
44 |
model = torch.hub.load('ultralytics/yolov5', 'yolov5x6', path='best.pt') # local model
|
45 |
|
46 |
-
|
47 |
|
48 |
if title is not None:
|
49 |
image = check_file(image)
|
|
|
43 |
def load_model():
|
44 |
model = torch.hub.load('ultralytics/yolov5', 'yolov5x6', path='best.pt') # local model
|
45 |
|
46 |
+
# model = load_model() #load model
|
47 |
|
48 |
if title is not None:
|
49 |
image = check_file(image)
|