Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ import gradio as gr
|
|
6 |
|
7 |
def fonk(video_path):
|
8 |
|
9 |
-
model=YOLO("
|
10 |
cap=cv2.VideoCapture(video_path)
|
11 |
|
12 |
frame_width = int(cap.get(3))
|
@@ -37,7 +37,7 @@ def fonk(video_path):
|
|
37 |
demo = gr.Interface(fonk,
|
38 |
inputs= gr.Video(),
|
39 |
outputs=gr.Video(),
|
40 |
-
examples=["
|
41 |
title= "cows",
|
42 |
cache_examples=True)
|
43 |
demo.launch()
|
|
|
6 |
|
7 |
def fonk(video_path):
|
8 |
|
9 |
+
model=YOLO("Cattle_Detection_with_YOLOV8/best.pt")
|
10 |
cap=cv2.VideoCapture(video_path)
|
11 |
|
12 |
frame_width = int(cap.get(3))
|
|
|
37 |
demo = gr.Interface(fonk,
|
38 |
inputs= gr.Video(),
|
39 |
outputs=gr.Video(),
|
40 |
+
examples=["cow-video-cows-mooing-and-grazing-in-a-field.mp4"],
|
41 |
title= "cows",
|
42 |
cache_examples=True)
|
43 |
demo.launch()
|