mamechin
commited on
Commit
·
70c3ac5
1
Parent(s):
f5b910d
v13
Browse files
app.py
CHANGED
@@ -1,7 +1,9 @@
|
|
1 |
import gradio as gr
|
2 |
from ultralytics import YOLO
|
3 |
-
|
4 |
-
model = YOLO('best.pt')
|
|
|
|
|
5 |
|
6 |
def predict(input_image):
|
7 |
"""
|
|
|
1 |
import gradio as gr
|
2 |
from ultralytics import YOLO
|
3 |
+
import torch
|
4 |
+
# model = YOLO('best.pt')
|
5 |
+
path = 'best.pt'
|
6 |
+
model = torch.hub.load("WongKinYiu/yolov7","custom",f"{path}",trust_repo=True)
|
7 |
|
8 |
def predict(input_image):
|
9 |
"""
|