ArchiMathur commited on
Commit
3a8bc47
·
verified ·
1 Parent(s): 258d3a6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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