Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -2,7 +2,7 @@ import cv2
|
|
| 2 |
import numpy as np
|
| 3 |
import gradio as gr
|
| 4 |
import torch
|
| 5 |
-
|
| 6 |
# Load the YOLO model (adjust the path to your model weights and config)
|
| 7 |
model = torch.hub.load('best.pt') # Change to your model path
|
| 8 |
|
|
|
|
| 2 |
import numpy as np
|
| 3 |
import gradio as gr
|
| 4 |
import torch
|
| 5 |
+
from ultralytics import YOLO
|
| 6 |
# Load the YOLO model (adjust the path to your model weights and config)
|
| 7 |
model = torch.hub.load('best.pt') # Change to your model path
|
| 8 |
|