ma4389 commited on
Commit
1d1682a
·
verified ·
1 Parent(s): 8b1d9f2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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("best.pt") # Ensure your model file is in the same folder
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):