Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
from ultralytics import YOLO
|
| 3 |
import cv2
|
| 4 |
-
|
| 5 |
|
| 6 |
torch.serialization.add_safe_globals([DetectionModel])
|
| 7 |
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
from ultralytics import YOLO
|
| 3 |
import cv2
|
| 4 |
+
import torch
|
| 5 |
|
| 6 |
torch.serialization.add_safe_globals([DetectionModel])
|
| 7 |
|