Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -11,7 +11,7 @@ import gradio as gr
|
|
| 11 |
torch.serialization.add_safe_globals([DetectionModel, nn.Sequential, Conv])
|
| 12 |
|
| 13 |
# ---- Load trained YOLO model ----
|
| 14 |
-
model = YOLO("
|
| 15 |
|
| 16 |
# ---- Prediction function ----
|
| 17 |
def predict(image):
|
|
|
|
| 11 |
torch.serialization.add_safe_globals([DetectionModel, nn.Sequential, Conv])
|
| 12 |
|
| 13 |
# ---- Load trained YOLO model ----
|
| 14 |
+
model = YOLO("res.pt") # Ensure your model file is in the same folder
|
| 15 |
|
| 16 |
# ---- Prediction function ----
|
| 17 |
def predict(image):
|