Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ import gradio as gr
|
|
7 |
model = Yolov4(weight_path="yolov4.weights", class_name_path='coco_classes.txt')
|
8 |
def gradio_wrapper(img):
|
9 |
global model
|
10 |
-
print(np.shape(img))
|
11 |
results = model.predict(img)
|
12 |
return results[0]
|
13 |
demo = gr.Interface(
|
|
|
7 |
model = Yolov4(weight_path="yolov4.weights", class_name_path='coco_classes.txt')
|
8 |
def gradio_wrapper(img):
|
9 |
global model
|
10 |
+
#print(np.shape(img))
|
11 |
results = model.predict(img)
|
12 |
return results[0]
|
13 |
demo = gr.Interface(
|