Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ import numpy as np
|
|
4 |
from glob import glob
|
5 |
from models import Yolov4
|
6 |
import gradio as gr
|
7 |
-
model = Yolov4(weight_path="
|
8 |
def gradio_wrapper(img):
|
9 |
global model
|
10 |
#print(np.shape(img))
|
|
|
4 |
from glob import glob
|
5 |
from models import Yolov4
|
6 |
import gradio as gr
|
7 |
+
model = Yolov4(weight_path="best.pt", class_name_path='coco_classes.txt')
|
8 |
def gradio_wrapper(img):
|
9 |
global model
|
10 |
#print(np.shape(img))
|