KAHRAMAN42 commited on
Commit
50e991b
·
verified ·
1 Parent(s): eb49cd6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -6,7 +6,7 @@ import gradio as gr
6
 
7
  def fonk(video_path):
8
 
9
- model=YOLO("/home/kahraman/Masaüstü/HuggingFace_Models_and_Spaces/Cattle_Detection_with_YOLOV8/best.pt")
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=["/home/kahraman/Masaüstü/HuggingFace_Models_and_Spaces/Cattle_Detection_with_YOLOV8/cow-video-cows-mooing-and-grazing-in-a-field.mp4"],
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()