Spaces:
Sleeping
Sleeping
Update detect_bubbles.py
Browse files- detect_bubbles.py +1 -1
detect_bubbles.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
from ultralytics import YOLO
|
| 2 |
import torch.serialization
|
| 3 |
|
| 4 |
-
torch.serialization.add_safe_globals([
|
| 5 |
|
| 6 |
def detect_bubbles(model_path, image_path):
|
| 7 |
"""
|
|
|
|
| 1 |
from ultralytics import YOLO
|
| 2 |
import torch.serialization
|
| 3 |
|
| 4 |
+
torch.serialization.add_safe_globals([YOLO])
|
| 5 |
|
| 6 |
def detect_bubbles(model_path, image_path):
|
| 7 |
"""
|