Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -133,6 +133,7 @@ iface.launch()"""
|
|
133 |
import gradio as gr
|
134 |
import torch
|
135 |
from PIL import Image
|
|
|
136 |
|
137 |
# Load the YOLO model
|
138 |
model = torch.hub.load('ultralytics/yolov5', 'custom', path='https://huggingface.co/ayoubsa/yolo_model/blob/main/best.pt') # Replace with your uploaded model's path
|
|
|
133 |
import gradio as gr
|
134 |
import torch
|
135 |
from PIL import Image
|
136 |
+
import numpy as np
|
137 |
|
138 |
# Load the YOLO model
|
139 |
model = torch.hub.load('ultralytics/yolov5', 'custom', path='https://huggingface.co/ayoubsa/yolo_model/blob/main/best.pt') # Replace with your uploaded model's path
|