Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -4,9 +4,7 @@ import gradio as gr
|
|
4 |
import requests
|
5 |
from PIL import Image
|
6 |
|
7 |
-
#
|
8 |
-
|
9 |
-
# model = DetectMultiBackend(weights)
|
10 |
|
11 |
model = torch.hub.load('ultralytics/yolov5', 'custom', 'yolov5m-cls.pt').eval() # load from PyTorch Hub
|
12 |
model.classify = True
|
|
|
4 |
import requests
|
5 |
from PIL import Image
|
6 |
|
7 |
+
#load models from pytorch hub
|
|
|
|
|
8 |
|
9 |
model = torch.hub.load('ultralytics/yolov5', 'custom', 'yolov5m-cls.pt').eval() # load from PyTorch Hub
|
10 |
model.classify = True
|